mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
add network reset error, fix connection reset
This commit is contained in:
parent
5330edcc57
commit
b48dfc0927
3 changed files with 24 additions and 0 deletions
11
src/Exception/ConnectionAbortedException.php
Normal file
11
src/Exception/ConnectionAbortedException.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
/**
|
||||
* Copyright (c) 2020 Robin Appelman <icewind@owncloud.com>
|
||||
* This file is licensed under the Licensed under the MIT license:
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
namespace Icewind\SMB\Exception;
|
||||
|
||||
class ConnectionAbortedException extends ConnectException {
|
||||
}
|
||||
11
src/Exception/ConnectionResetException.php
Normal file
11
src/Exception/ConnectionResetException.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
/**
|
||||
* Copyright (c) 2020 Robin Appelman <icewind@owncloud.com>
|
||||
* This file is licensed under the Licensed under the MIT license:
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
namespace Icewind\SMB\Exception;
|
||||
|
||||
class ConnectionResetException extends ConnectException {
|
||||
}
|
||||
|
|
@ -16,6 +16,7 @@ use Icewind\SMB\Exception\ForbiddenException;
|
|||
use Icewind\SMB\Exception\HostDownException;
|
||||
use Icewind\SMB\Exception\InvalidArgumentException;
|
||||
use Icewind\SMB\Exception\InvalidTypeException;
|
||||
use Icewind\SMB\Exception\ConnectionAbortedException;
|
||||
use Icewind\SMB\Exception\NoRouteToHostException;
|
||||
use Icewind\SMB\Exception\NotEmptyException;
|
||||
use Icewind\SMB\Exception\NotFoundException;
|
||||
|
|
@ -49,6 +50,7 @@ class NativeState {
|
|||
22 => InvalidArgumentException::class,
|
||||
28 => OutOfSpaceException::class,
|
||||
39 => NotEmptyException::class,
|
||||
103 => ConnectionAbortedException::class,
|
||||
104 => ConnectionResetException::class,
|
||||
110 => TimedOutException::class,
|
||||
111 => ConnectionRefusedException::class,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue