You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
766 B
43 lines
766 B
10 years ago
|
<?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;
|
||
|
}
|