NotFound.php 903 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Exception thrown if an object wasn't found.
  4. *
  5. * Copyright 2010-2013 Horde LLC (http://www.horde.org/)
  6. *
  7. * See the enclosed file COPYING for license information (LGPL). If you
  8. * did not receive this file, see http://www.horde.org/licenses/lgpl21.
  9. *
  10. * @category Horde
  11. * @package Exception
  12. */
  13. class Horde_Exception_NotFound extends Horde_Exception
  14. {
  15. /**
  16. * Constructor.
  17. *
  18. * @see Horde_Exception::__construct()
  19. *
  20. * @param mixed $message The exception message, a PEAR_Error
  21. * object, or an Exception object.
  22. * @param integer $code A numeric error code.
  23. */
  24. public function __construct($message = null, $code = null)
  25. {
  26. if (is_null($message)) {
  27. $message = Horde_Exception_Translation::t("Not Found");
  28. }
  29. parent::__construct($message, $code);
  30. }
  31. }