Esempio n. 1
0
 public function display()
 {
     $this->status = 404;
     $this->title = '404 Not Found';
     $this->text = 'Unable to find this URL: %e%';
     $this->tpl = 'notfound';
     return parent::display();
 }
Esempio n. 2
0
 public function display()
 {
     $this->title = 'Code syntax exception';
     $this->status = 503;
     $this->tpl = 'syntax';
     $this->text = 'Website code syntax exception: %e%';
     return parent::display();
 }
Esempio n. 3
0
 public function __construct($context, $reason = null)
 {
     $this->context = $context;
     if (is_object($reason) || is_array($reason)) {
         $this->info = (object) $reason;
     }
     parent::__construct("Parsing failed for " . $this->context->getFile() . ($this->info !== null ? " @ " . $this->info->line . ":" . $this->info->column . ", expected " . implode(", ", $this->info->expected) : " - " . $reason));
 }
Esempio n. 4
0
 public function display()
 {
     $this->status = 403;
     $this->title = '403 Forbidden';
     $this->text = 'Access to this page is forbidden: %e%';
     $this->tpl = 'forbidden';
     return parent::display();
 }
 /**
  * @param string $Message
  * @param int    $Code
  * @param null   $Previous
  */
 public function __construct($Message = "", $Code = 0, $Previous = null)
 {
     $Message = 'Template type ' . $Message . ' not supported!';
     parent::__construct($Message, $Code, $Previous);
 }
Esempio n. 6
0
 public function __construct($template, $message = 'The given XML is invalid.')
 {
     parent::__construct($template, $message);
 }
Esempio n. 7
0
 public function __construct($clsMethod = '', $clsName = '')
 {
     parent::__construct("Template Method '{$clsMethod}' Not Found in Driver Class '{$clsName}'.");
 }
 public function __construct(CompilerContext $context, $reason)
 {
     $this->context = $context;
     parent::__construct($reason);
 }