public static function error($msg, $backtrace = false) { self::outputMessage(self::LEVEL_ERROR, $msg, $backtrace); throw new \Exception(); }