Details
-
Type:
Improvement
-
Status:
Postponed
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.5.1
-
Fix Version/s: None
-
Component/s: Zend_Rest_Server, Zend_XmlRpc_Server
-
Labels:None
Description
Flag to allow throwing exceptions from the server.
Example:
$server->throwExceptions(true);
Sample:
$server->throwExceptions(true); try { echo $server->handle(); } catch (MyPersonalException $e) { echo $server->fault($e); } catch (Exception $e) { // do other things like logging, email the admin as this was an unexpected error. echo $server->fault(new Exception('An unknown error occured. Please try again.')); }
This would bring the server components more inline with the PHP SoapServer API.
Scheduling for next minor release.