Exemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param string  $message Message default = ''.
  * @param integer $code    Code default = 404.
  * @param mixed   $debug   Debug default = null.
  */
 public function __construct($message='', $code=404, $debug=null)
 {
     if (empty($message)) {
         $message = __('The requested page could not be found or is not currently accessible.');
     }
     parent::__construct($message, $code, $debug);
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param string  $message Message default = ''.
  * @param integer $code    Code default = 500.
  * @param mixed   $debug   Debug default = null.
  */
 public function __construct($message='', $code=500, $debug=null)
 {
     if (empty($message)) {
         $message = __('A fatal system error occured.');
     }
     parent::__construct($message, $code, $debug);
 }
Exemplo n.º 3
0
 /**
  * Constructor.
  *
  * @param string  $message Message default = ''.
  * @param integer $code    Code default = 0.
  * @param mixed   $debug   Debug default = null.
  */
 public function __construct($message='', $code=0, $debug=null)
 {
     if (empty($message)) {
         $message = __('Sorry! You have not been granted access to this page.');
     }
     parent::__construct($message, $code, $debug);
 }