summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrojaro <>2010-05-18 11:15:25 +0000
committerrojaro <>2010-05-18 11:15:25 +0000
commitf854b844b09e510f21a0008068fca9a931773b90 (patch)
tree422b8eadef98800cc7c0debee00bad558d8951d5
parent0e53d6ec7b706d71b83230aa0165ec19a2cc10b7 (diff)
THttpExceptions are not being transformed into internal errors anymore
-rw-r--r--framework/Web/Services/TRpcService.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/Web/Services/TRpcService.php b/framework/Web/Services/TRpcService.php
index 50246abc..b1a27456 100644
--- a/framework/Web/Services/TRpcService.php
+++ b/framework/Web/Services/TRpcService.php
@@ -350,6 +350,10 @@ class TJsonRpcProtocol extends TRpcProtocol
{
return $this->createErrorResponse($e);
}
+ catch(THttpException $e)
+ {
+ throw $e;
+ }
catch(Exception $e)
{
prado::log();
@@ -468,6 +472,10 @@ class TXmlRpcProtocol extends TRpcProtocol
{
return $this->createErrorResponse($e);
}
+ catch(THttpException $e)
+ {
+ throw $e;
+ }
catch(Exception $e)
{
return $this->createErrorResponse(new TRpcException('An internal error occured'));