Пример #1
0
 public function __construct($message, $extension_name = false, $code = self::ERROR)
 {
     if ($extension_name) {
         $message = 'An error occured in `' . $extension_name . '` extension with the message: ' . $message;
     } else {
         $message = 'An error occured in an unnamed ' . 'extension with the message: ' . $message;
     }
     parent::__construct($message, $code);
 }
 public function __construct($page)
 {
     $message = 'Page number `' . $page . '` doesn\'t exist';
     parent::__construct($message, self::ERROR);
 }
 public function __construct($controller_name, $code = self::ERROR)
 {
     $message = 'Controller `' . $controller_name . '` doesn\'t exist';
     parent::__construct($message, $code);
 }
 public function __construct($string_connection, $user, $code = self::ERROR)
 {
     $message = 'Access to database is denied for `' . $user . '`' . ' (`' . $string_connection . '`)';
     parent::__construct($message, $code);
 }
Пример #5
0
 public function __construct($controller_name, $action_name, $code = self::ERROR)
 {
     $message = '`' . $action_name . '` cannot be invoked on `' . $controller_name . '`';
     parent::__construct($message, $code);
 }
 public function __construct($file_name, $code = self::ERROR)
 {
     $message = 'Permission is denied for `' . $file_name . '`';
     parent::__construct($message, $code);
 }
 public function __construct($error, $code = self::ERROR)
 {
     $message = 'Configuration error: ' . $error;
     parent::__construct($message, $code);
 }
 public function __construct($controller_name, $code = self::ERROR)
 {
     $message = 'Controller `' . $controller_name . '` isn\'t instance of ActionController';
     parent::__construct($message, $code);
 }
 public function __construct($part_missing, $code = self::ERROR)
 {
     $message = '`' . $part_missing . '` in the configuration file is missing or is misconfigured';
     parent::__construct($message, $code);
 }
Пример #10
0
 public function __construct($route, $code = self::ERROR)
 {
     $this->route = $route;
     $message = 'Route `' . $route . '` not found';
     parent::__construct($message, $code);
 }
Пример #11
0
 public function __construct($file_name, $code = self::ERROR)
 {
     $message = 'File not found: `' . $file_name . '`';
     parent::__construct($message, $code);
 }