Re: Handling errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux