ZF-3102: Flag to allow throwing exceptions from the server

Issue Type: Improvement Created: 2008-04-11T15:08:35.000+0000 Last Updated: 2008-08-04T13:33:55.000+0000 Status: Postponed Fix version(s): Reporter: James Dempster (letssurf) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Rest_Server

  • Zend_XmlRpc_Server

Related issues: Attachments:


Flag to allow throwing exceptions from the server.


<pre class="highlight">


$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.


Posted by Matthew Weier O'Phinney (matthew) on 2008-05-09T11:55:24.000+0000

Scheduling for next minor release.

Posted by Matthew Weier O'Phinney (matthew) on 2008-08-04T13:33:28.000+0000

Actually, for Zend_XmlRpc_Server, you can already specify exceptions that you will allow the server to report as fault exceptions. Zend_Rest_Server does not have this functionality currently however.

I'm going to postpone this issue to 1.7.0; we now have four server implementations (and a fifth on the way), and I want to review and consider this implementation for all of them.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.