From f854b844b09e510f21a0008068fca9a931773b90 Mon Sep 17 00:00:00 2001 From: rojaro <> Date: Tue, 18 May 2010 11:15:25 +0000 Subject: THttpExceptions are not being transformed into internal errors anymore --- framework/Web/Services/TRpcService.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'framework/Web') 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')); -- cgit v1.2.3