Ejemplo n.º 1
0
 /**
  * Displays an error and halts the parsing.
  *	
  * @param $message
  * @return void
  */
 public static function error($message)
 {
     /**
      * Log the message before we throw the error
      */
     Scaffold_Log::log($message, 0);
     /**
      * Useful variable to let other objects know there was an error with the parsing
      */
     self::$has_error = true;
     /**
      * Add the error header. If the CSS is rendered, this will be sent
      */
     self::header('_status', 500);
     /**
      * This will be caught in the parse method
      */
     throw new Exception($message);
 }