Rpc/Exception/JsonRpcInternalErrorException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class JsonRpcInternalErrorException extends JsonRpcGenericErrorException |
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/JsonRpcInvalidParamsException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class JsonRpcInvalidParamsException extends JsonRpcGenericErrorException |
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/JsonRpcInvalidRequestException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class JsonRpcInvalidRequestException extends JsonRpcGenericErrorException |
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/JsonRpcMethodNotFoundException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class JsonRpcMethodNotFoundException extends JsonRpcGenericErrorException |
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/JsonRpcParserErrorException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class JsonRpcParserErrorException extends JsonRpcGenericErrorException |
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/JsonRpcUnsupportedProtocolException.php 1 location
|
@@ 6-15 (lines=10) @@
|
3 |
|
namespace Cmobi\RabbitmqBundle\Rpc\Exception; |
4 |
|
|
5 |
|
|
6 |
|
class JsonRpcUnsupportedProtocolException extends JsonRpcGenericErrorException |
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 |
|
} |