src/Common/Service/ErrorHandler.php
public function showFatalErrorScreen($sSubject = '', $sMessage = '', $oDetails = null)
    {
        if (is_array($sMessage)) {
            $sMessage = implode("\n", $sMessage);
        }

        if (is_null($oDetails)) {
            $oDetails = (object) [
                'type'      => null,
                'code'      => null,
                'msg'       => null,
                'file'      => null,
                'line'      => null,
                'backtrace' => null,
            ];
        }

        //  Get the backtrace
        if (function_exists('debug_backtrace')) {
            $oDetails->backtrace = debug_backtrace();
        } else {
            $oDetails->backtrace = [];
        }

        set_status_header(HttpCodes::STATUS_INTERNAL_SERVER_ERROR);
        $this->renderErrorView(
            '500',
            [
                'sSubject' => $sSubject,
                'sMessage' => $sMessage,
                'oDetails' => $oDetails,
            ]
        );
        exit(HttpCodes::STATUS_INTERNAL_SERVER_ERROR);
    }
public function showFatalErrorScreen($sSubject = '', $sMessage = '', $oDetails = null)
    {
        if (is_array($sMessage)) {
            $sMessage = implode("\n", $sMessage);
        }

        if (is_null($oDetails)) {
            $oDetails = (object) [
                'type'      => null,
                'code'      => null,
                'msg'       => null,
                'file'      => null,
                'line'      => null,
                'backtrace' => null,
            ];
        }

        //  Get the backtrace
        if (function_exists('debug_backtrace')) {
            $oDetails->backtrace = debug_backtrace();
        } else {
            $oDetails->backtrace = [];
        }

        set_status_header(HttpCodes::STATUS_INTERNAL_SERVER_ERROR);
        $this->renderErrorView(
            '500',
            [
                'sSubject' => $sSubject,
                'sMessage' => $sMessage,
                'oDetails' => $oDetails,
            ]
        );
        exit(HttpCodes::STATUS_INTERNAL_SERVER_ERROR);
    }
public function showFatalErrorScreen ( $ sSubject = '' , $ sMessage = '' , $ oDetails = null ) { if ( is_array ( $ sMessage ) ) { $ sMessage = implode ( "\n" , $ sMessage ) ; } if ( is_null ( $ oDetails ) ) { $ oDetails = ( object ) [ 'type' => null , 'code' => null , 'msg' => null , 'file' => null , 'line' => null , 'backtrace' => null , ] ; } //  Get the backtrace if ( function_exists ( 'debug_backtrace' ) ) { $ oDetails -> backtrace = debug_backtrace ( ) ; } else { $ oDetails -> backtrace = [ ] ; } set_status_header ( HttpCodes :: STATUS_INTERNAL_SERVER_ERROR ) ; $ this -> renderErrorView ( '500' , [ 'sSubject' => $ sSubject , 'sMessage' => $ sMessage , 'oDetails' => $ oDetails , ] ) ; exit ( HttpCodes :: STATUS_INTERNAL_SERVER_ERROR ) ; }
Shows the fatal error screen. A diagnostic screen is shown on non-production
environments

@param string    $sSubject The error subject
@param string    $sMessage The error message
@param \stdClass $oDetails Breakdown of the error which occurred

@return void
Shows the fatal error screen . A diagnostic screen is shown on non - production environments