Пример #1
0
 /**
  * NotFoundException constructor
  *
  * @param string $message  Exception message
  * @param int    $code     Exception code
  * @param null   $previous Previous exception
  */
 public function __construct($message = 'Not Found', $code = 404, $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
Пример #2
0
 /**
  * Rad\Network\Http\Exception\Forbidden constructor
  *
  * @param string $message  Exception message
  * @param int    $code     Exception code
  * @param null   $previous Previous exception
  */
 public function __construct($message = 'Forbidden', $code = 403, $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }