Re: [SOAP] Handling errors
| From: | Adam Maccabee Trachtenberg | Date: | Fri, 14 Apr 2006 05:49:54 +0000 |
| Subject: | Re: [SOAP] Handling errors | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-2198@lists.php.net to get a copy of this message | ||
On Thu, 13 Apr 2006, Patrick Hanna wrote:
> redirect to an error page or do something else. I've tried use @ when making
> the client but execution still stops instead of just not printing out the
> warnings. Any ideas how to continue execution with knowledge of errors?
try {
$c = new SOAPClient('bad.wsdl');
} catch (Exception $e) {
print $e;
// handle exception here
}
--
adam@trachtenberg.com | http://www.trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!