Skip to content

Commit

Permalink
add network reset error, fix connection reset
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Apr 3, 2020
1 parent 5330edc commit b48dfc0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Exception/ConnectionAbortedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Copyright (c) 2020 Robin Appelman <[email protected]>
* 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 changes: 11 additions & 0 deletions src/Exception/ConnectionResetException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Copyright (c) 2020 Robin Appelman <[email protected]>
* This file is licensed under the Licensed under the MIT license:
* http://opensource.org/licenses/MIT
*/

namespace Icewind\SMB\Exception;

class ConnectionResetException extends ConnectException {
}
2 changes: 2 additions & 0 deletions src/Native/NativeState.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b48dfc0

Please sign in to comment.