Esempio n. 1
0
 public function __construct($code, array $params = array(), Exception $previous = null)
 {
     $message = isset($this->_messages[$code]) ? $this->_messages[$code] : '';
     $this->_params = $params;
     parent::__construct($message, $code, $previous);
     Logger::exception($this);
 }
Esempio n. 2
0
 public function __construct($message, $traceLevel = 1)
 {
     $trace = debug_backtrace();
     $this->file = $trace[1]['file'];
     $this->line = $trace[1]['line'];
     parent::__construct($message);
     Logger::exception($this);
 }