function __construct($message, $type, $file, $line, $backtrace)
 {
     $this->_type = $type;
     $this->_file = $file;
     $this->_line = $line;
     $this->_backtrace = $backtrace;
     parent::__construct($message);
 }
 function __construct(\Exception $ex, $fatal = true)
 {
     $this->ex = $ex;
     //Build Error page
     if (!\Radical\Core\Server::isCLI() && \Radical\Core\Server::isProduction()) {
         $message = 'An exception has occurred in the script.';
         global $_ADMIN_EMAIL;
         if (isset($_ADMIN_EMAIL)) {
             $message .= ' Please report this to an administrator at ' . $_ADMIN_EMAIL . '.';
         }
     } else {
         $message = 'An exception occurred at ' . $ex->getFile() . '@' . $ex->getLine() . ': ' . $ex->getMessage();
     }
     $header = sprintf(static::HEADER, ltrim(get_class($ex), '\\'));
     parent::__construct($message, $header, $fatal, $ex);
 }