-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor cosmetic changes, throw an error when rcon read fails (#42)
- Loading branch information
Showing
5 changed files
with
76 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
<?php | ||
/** | ||
* Class written by xPaw | ||
* | ||
* Website: http://xpaw.me | ||
* GitHub: https://github.com/xPaw/PHP-Source-Query-Class | ||
*/ | ||
|
||
namespace xPaw\SourceQuery\Exception; | ||
|
||
abstract class SourceQueryException extends \Exception | ||
{ | ||
|
||
} | ||
|
||
class InvalidArgumentException extends SourceQueryException | ||
{ | ||
const TIMEOUT_NOT_INTEGER = 1; | ||
} | ||
|
||
class TimeoutException extends SourceQueryException | ||
{ | ||
const TIMEOUT_CONNECT = 1; | ||
} | ||
|
||
class InvalidPacketException extends SourceQueryException | ||
{ | ||
const PACKET_HEADER_MISMATCH = 1; | ||
const BUFFER_NOT_EMPTY = 2; | ||
|
||
const CHECKSUM_MISMATCH = 3; | ||
} | ||
|
||
class AuthenticationException extends SourceQueryException | ||
{ | ||
const BAD_PASSWORD = 1; | ||
const BANNED = 2; | ||
} | ||
|
||
class SocketException extends SourceQueryException | ||
{ | ||
const COULD_NOT_CREATE_SOCKET = 1; | ||
} | ||
/** | ||
* Class written by xPaw | ||
* | ||
* Website: http://xpaw.me | ||
* GitHub: https://github.com/xPaw/PHP-Source-Query-Class | ||
*/ | ||
namespace xPaw\SourceQuery\Exception; | ||
abstract class SourceQueryException extends \Exception | ||
{ | ||
// Base exception class | ||
} | ||
class InvalidArgumentException extends SourceQueryException | ||
{ | ||
const TIMEOUT_NOT_INTEGER = 1; | ||
} | ||
class TimeoutException extends SourceQueryException | ||
{ | ||
const TIMEOUT_CONNECT = 1; | ||
} | ||
class InvalidPacketException extends SourceQueryException | ||
{ | ||
const PACKET_HEADER_MISMATCH = 1; | ||
const BUFFER_EMPTY = 2; | ||
const BUFFER_NOT_EMPTY = 3; | ||
const CHECKSUM_MISMATCH = 4; | ||
} | ||
class AuthenticationException extends SourceQueryException | ||
{ | ||
const BAD_PASSWORD = 1; | ||
const BANNED = 2; | ||
} | ||
class SocketException extends SourceQueryException | ||
{ | ||
const COULD_NOT_CREATE_SOCKET = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters