Rpc/Exception/RpcInternalErrorException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class RpcInternalErrorException extends RpcGenericErrorException |
7 |
|
{ |
8 |
|
const ERROR_CODE = -32603; |
9 |
|
|
10 |
|
public function __construct(\Exception $previous = null) |
11 |
|
{ |
12 |
|
$message = 'Internal error'; |
13 |
|
parent::__construct($message, self::ERROR_CODE, $previous); |
14 |
|
} |
15 |
|
} |
Rpc/Exception/RpcInvalidParamsException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class RpcInvalidParamsException extends RpcGenericErrorException |
7 |
|
{ |
8 |
|
const ERROR_CODE = -32602; |
9 |
|
|
10 |
|
public function __construct(\Exception $previous = null) |
11 |
|
{ |
12 |
|
$message = 'Invalid params'; |
13 |
|
parent::__construct($message, self::ERROR_CODE, $previous); |
14 |
|
} |
15 |
|
} |
Rpc/Exception/RpcInvalidRequestException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class RpcInvalidRequestException extends RpcGenericErrorException |
7 |
|
{ |
8 |
|
const ERROR_CODE = -32600; |
9 |
|
|
10 |
|
public function __construct(\Exception $previous = null) |
11 |
|
{ |
12 |
|
$message = 'Invalid Request'; |
13 |
|
parent::__construct($message, self::ERROR_CODE, $previous); |
14 |
|
} |
15 |
|
} |
Rpc/Exception/RpcMethodNotFoundException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class RpcMethodNotFoundException extends RpcGenericErrorException |
7 |
|
{ |
8 |
|
const ERROR_CODE = -32601; |
9 |
|
|
10 |
|
public function __construct(\Exception $previous = null) |
11 |
|
{ |
12 |
|
$message = 'Method not found'; |
13 |
|
parent::__construct($message, self::ERROR_CODE, $previous); |
14 |
|
} |
15 |
|
} |
Rpc/Exception/RpcParserErrorException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class RpcParserErrorException extends RpcGenericErrorException |
7 |
|
{ |
8 |
|
const ERROR_CODE = -32700; |
9 |
|
|
10 |
|
public function __construct(\Exception $previous = null) |
11 |
|
{ |
12 |
|
$message = 'Parse error'; |
13 |
|
parent::__construct($message, self::ERROR_CODE, $previous); |
14 |
|
} |
15 |
|
} |
Rpc/Exception/RpcUnsupportedProtocolException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class RpcUnsupportedProtocolException extends RpcGenericErrorException |
7 |
|
{ |
8 |
|
const ERROR_CODE = -32001; |
9 |
|
|
10 |
|
public function __construct(\Exception $previous = null) |
11 |
|
{ |
12 |
|
$message = 'Unsupported protocol version'; |
13 |
|
parent::__construct($message, self::ERROR_CODE, $previous); |
14 |
|
} |
15 |
|
} |