Exception.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to version 1.0 of the Zend Framework
  8. * license, that is bundled with this package in the file LICENSE.txt, and
  9. * is available through the world-wide-web at the following URL:
  10. * http://framework.zend.com/license/new-bsd. If you did not receive
  11. * a copy of the Zend Framework license and are unable to obtain it
  12. * through the world-wide-web, please send a note to license@zend.com
  13. * so we can mail you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Barcode
  17. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id$
  20. */
  21. /**
  22. * Zend_Exception
  23. */
  24. require_once 'Zend/Exception.php';
  25. /**
  26. * Zend_Barcode_Exception
  27. *
  28. * @category Zend
  29. * @package Zend_Barcode
  30. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @license http://framework.zend.com/license/new-bsd New BSD License
  32. */
  33. class Zend_Barcode_Exception extends Zend_Exception
  34. {
  35. /**
  36. * Is this exception renderable?
  37. * @var bool
  38. */
  39. protected $_isRenderable = true;
  40. /**
  41. * Set renderable flag
  42. *
  43. * @param bool $flag
  44. * @return Zend_Barcode_Exception
  45. */
  46. public function setIsRenderable($flag)
  47. {
  48. $this->_isRenderable = (bool) $flag;
  49. return $this;
  50. }
  51. /**
  52. * Retrieve renderable flag
  53. *
  54. * @return bool
  55. */
  56. public function isRenderable()
  57. {
  58. return $this->_isRenderable;
  59. }
  60. }