public function display(string $code, string $message)
    {
        if (defined("IUMIO_FCM") && IUMIO_FCM === true) {
            return($this->displayConsole($code, $message));
        }

        $libf = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs.framework");
        $title = $this->code.' '.strtolower(ucfirst($this->codeTitle)).
            ' - Environment '.(ucfirst(strtolower($this->env)));
        $boot = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs").'bootstrap/';
        $anim = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs").
            'animate.css/';
        $im = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs").
            'iumio-manager/';
        $font =  \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs").
            'font-awesome/';

        $msg = 'An exception was generated - Environment '.(strtoupper(strtolower($this->env)));

        $fimg = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs.framework").
            'img/';

        $libs =  \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs");

        @header($_SERVER['SERVER_PROTOCOL'] .' '.
            (($code == 000)? 500 : $code).' '.HttpResponse::getPhrase($code), true, $code);
        if ($this->checkExceptionOverride($code)) {
            $this->displayOverride($code, $message);
        } elseif ($this->external || FEnv::get("framework.env") == "prod") {
            (@include_once(FEnv::get("framework.exceptions_view").'html/'.$code.'.html'));
        } else {
            (@include_once  FEnv::get("framework.exceptions_view").'layout.exception.html.php');
        }
        die();
    }
public function display(string $code, string $message)
    {
        if (defined("IUMIO_FCM") && IUMIO_FCM === true) {
            return($this->displayConsole($code, $message));
        }

        $libf = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs.framework");
        $title = $this->code.' '.strtolower(ucfirst($this->codeTitle)).
            ' - Environment '.(ucfirst(strtolower($this->env)));
        $boot = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs").'bootstrap/';
        $anim = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs").
            'animate.css/';
        $im = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs").
            'iumio-manager/';
        $font =  \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs").
            'font-awesome/';

        $msg = 'An exception was generated - Environment '.(strtoupper(strtolower($this->env)));

        $fimg = \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs.framework").
            'img/';

        $libs =  \iumioFramework\Core\Requirement\Environment\FEnv::get("host.web.components.libs");

        @header($_SERVER['SERVER_PROTOCOL'] .' '.
            (($code == 000)? 500 : $code).' '.HttpResponse::getPhrase($code), true, $code);
        if ($this->checkExceptionOverride($code)) {
            $this->displayOverride($code, $message);
        } elseif ($this->external || FEnv::get("framework.env") == "prod") {
            (@include_once(FEnv::get("framework.exceptions_view").'html/'.$code.'.html'));
        } else {
            (@include_once  FEnv::get("framework.exceptions_view").'layout.exception.html.php');
        }
        die();
    }
public function display ( string $ code , string $ message ) { if ( defined ( "IUMIO_FCM" ) && IUMIO_FCM === true ) { return ( $ this -> displayConsole ( $ code , $ message ) ) ; } $ libf = \ iumioFramework \ Core \ Requirement \ Environment \ FEnv :: get ( "host.web.components.libs.framework" ) ; $ title = $ this -> code . ' ' . strtolower ( ucfirst ( $ this -> codeTitle ) ) . ' - Environment ' . ( ucfirst ( strtolower ( $ this -> env ) ) ) ; $ boot = \ iumioFramework \ Core \ Requirement \ Environment \ FEnv :: get ( "host.web.components.libs" ) . 'bootstrap/' ; $ anim = \ iumioFramework \ Core \ Requirement \ Environment \ FEnv :: get ( "host.web.components.libs" ) . 'animate.css/' ; $ im = \ iumioFramework \ Core \ Requirement \ Environment \ FEnv :: get ( "host.web.components.libs" ) . 'iumio-manager/' ; $ font = \ iumioFramework \ Core \ Requirement \ Environment \ FEnv :: get ( "host.web.components.libs" ) . 'font-awesome/' ; $ msg = 'An exception was generated - Environment ' . ( strtoupper ( strtolower ( $ this -> env ) ) ) ; $ fimg = \ iumioFramework \ Core \ Requirement \ Environment \ FEnv :: get ( "host.web.components.libs.framework" ) . 'img/' ; $ libs = \ iumioFramework \ Core \ Requirement \ Environment \ FEnv :: get ( "host.web.components.libs" ) ; @ header ( $ _SERVER [ 'SERVER_PROTOCOL' ] . ' ' . ( ( $ code == 000 ) ? 500 : $ code ) . ' ' . HttpResponse :: getPhrase ( $ code ) , true , $ code ) ; if ( $ this -> checkExceptionOverride ( $ code ) ) { $ this -> displayOverride ( $ code , $ message ) ; } elseif ( $ this -> external || FEnv :: get ( "framework.env" ) == "prod" ) { ( @ include_once ( FEnv :: get ( "framework.exceptions_view" ) . 'html/' . $ code . '.html' ) ) ; } else { ( @ include_once FEnv :: get ( "framework.exceptions_view" ) . 'layout.exception.html.php' ) ; } die ( ) ; }
Display server error to user
@param string $code Header code
@param string $message Header message
@return void
@throws \Exception
Display server error to user