diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-22 09:14:12 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2015-01-22 09:14:12 +0100 |
commit | 5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (patch) | |
tree | e870d29e21c14d5b1683d638dff978afe0a104fa /framework/Web/Services/TJsonRpcProtocol.php | |
parent | 53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff) |
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/Web/Services/TJsonRpcProtocol.php')
-rw-r--r-- | framework/Web/Services/TJsonRpcProtocol.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/Web/Services/TJsonRpcProtocol.php b/framework/Web/Services/TJsonRpcProtocol.php index 78b7cdc4..e0b30445 100644 --- a/framework/Web/Services/TJsonRpcProtocol.php +++ b/framework/Web/Services/TJsonRpcProtocol.php @@ -9,6 +9,7 @@ */ namespace Prado\Web\Services; +use Prado\Exceptions\THttpException; /** * TJsonRpcProtocol class @@ -86,7 +87,7 @@ class TJsonRpcProtocol extends TRpcProtocol { throw $e; } - catch(Exception $e) + catch(\Exception $e) { return $this->createErrorResponse(new TRpcException('An internal error occured', '-32603')); } @@ -160,7 +161,7 @@ class TJsonRpcProtocol extends TRpcProtocol { $errnum = json_last_error(); if($errnum != JSON_ERROR_NONE) - throw new Exception("JSON error: $msg", $err); + throw new \Exception("JSON error: $msg", $err); } /** |