Documentation

Basic usage - Zend_Exception

Basic usage

Zend_Exception is the base class for all exceptions thrown by Zend Framework. This class extends the base Exception class of PHP.

Example #1 Catch all Zend Framework exceptions

  1. try {
  2.     // your code
  3. } catch (Zend_Exception $e) {
  4.     // do something
  5. }

Example #2 Catch exceptions thrown by a specific component of Zend Framework

  1. try {
  2.     // your code
  3. } catch (Zend_Db_Exception $e) {
  4.     // do something
  5. }

Select a version:

Copyright

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

Contacts