1: <?php
2: /**
3: * Exception thrown if any access without sufficient permissions occured.
4: *
5: * Copyright 2010-2012 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_PermissionDenied 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("Permission Denied");
28: }
29: parent::__construct($message, $code);
30: }
31: }