summaryrefslogtreecommitdiff
path: root/framework/Web/Services/TJsonRpcProtocol.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
commit5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (patch)
treee870d29e21c14d5b1683d638dff978afe0a104fa /framework/Web/Services/TJsonRpcProtocol.php
parent53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff)
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/Web/Services/TJsonRpcProtocol.php')
-rw-r--r--framework/Web/Services/TJsonRpcProtocol.php5
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);
}
/**