src/php/main/Eix/Core/Application.php
public function fail(\Throwable $throwable)
    {
        Logger::get()->exception($throwable);
        header('Server error', true, 500);
        echo '<h1>Eix</h1>';
        echo 'The application cannot continue.';
        echo '<blockquote>' . $throwable->getMessage() . '</blockquote>';

        if (defined('DEBUG') && DEBUG) {
            echo '<pre>' . $throwable->getTraceAsString() . '</pre>';
        }

        die(-1);
    }
public function fail(\Throwable $throwable)
    {
        Logger::get()->exception($throwable);
        header('Server error', true, 500);
        echo '<h1>Eix</h1>';
        echo 'The application cannot continue.';
        echo '<blockquote>' . $throwable->getMessage() . '</blockquote>';

        if (defined('DEBUG') && DEBUG) {
            echo '<pre>' . $throwable->getTraceAsString() . '</pre>';
        }

        die(-1);
    }
public function fail ( \ Throwable $ throwable ) { Logger :: get ( ) -> exception ( $ throwable ) ; header ( 'Server error' , true , 500 ) ; echo '<h1>Eix</h1>' ; echo 'The application cannot continue.' ; echo '<blockquote>' . $ throwable -> getMessage ( ) . '</blockquote>' ; if ( defined ( 'DEBUG' ) && DEBUG ) { echo '<pre>' . $ throwable -> getTraceAsString ( ) . '</pre>' ; } die ( - 1 ) ; }
Stops the application and outputs an error.
@param Throwable $throwable the error that caused the application to
stop.
Stops the application and outputs an error .