Exception.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @package Zend_Db
  16. * @subpackage Adapter
  17. * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. */
  20. /**
  21. * Zend_Db_Adapter_Exception
  22. */
  23. require_once 'Zend/Db/Adapter/Exception.php';
  24. /**
  25. * Zend_Db_Adapter_Db2_Exception
  26. *
  27. * @package Zend_Db
  28. * @subpackage Adapter
  29. * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
  30. * @license http://framework.zend.com/license/new-bsd New BSD License
  31. */
  32. class Zend_Db_Adapter_Db2_Exception extends Zend_Db_Adapter_Exception
  33. {
  34. protected $code = '00000';
  35. protected $message = 'unknown exception';
  36. function __construct($msg = 'unknown exception', $state = '00000') {
  37. $this->message = $msg;
  38. $this->code = $state;
  39. }
  40. }