src/Common/CodeIgniter/Core/Exceptions.php
public function show_error(
        $sSubject,
        $sMessage = '',
        $sTemplate = '500',
        $iStatusCode = 500,
        $bUseException = true
    ) {
        if (is_array($sMessage)) {
            $sMessage = implode('<br>', $sMessage);
        }

        if ($bUseException) {
            throw new NailsException($sMessage, $iStatusCode);
        } else {
            $oErrorHandler = Factory::service('ErrorHandler');
            $oErrorHandler->showFatalErrorScreen($sSubject, $sMessage);
        }
    }
public function show_error(
        $sSubject,
        $sMessage = '',
        $sTemplate = '500',
        $iStatusCode = 500,
        $bUseException = true
    ) {
        if (is_array($sMessage)) {
            $sMessage = implode('<br>', $sMessage);
        }

        if ($bUseException) {
            throw new NailsException($sMessage, $iStatusCode);
        } else {
            $oErrorHandler = Factory::service('ErrorHandler');
            $oErrorHandler->showFatalErrorScreen($sSubject, $sMessage);
        }
    }
public function show_error ( $ sSubject , $ sMessage = '' , $ sTemplate = '500' , $ iStatusCode = 500 , $ bUseException = true ) { if ( is_array ( $ sMessage ) ) { $ sMessage = implode ( '<br>' , $ sMessage ) ; } if ( $ bUseException ) { throw new NailsException ( $ sMessage , $ iStatusCode ) ; } else { $ oErrorHandler = Factory :: service ( 'ErrorHandler' ) ; $ oErrorHandler -> showFatalErrorScreen ( $ sSubject , $ sMessage ) ; } }
Override the show_error method and pass to the Nails ErrorHandler

@param string  $sSubject      The error's subject
@param string  $sMessage      The error message
@param string  $sTemplate     Unused; only there to suppress compatibility notification
@param int     $iStatusCode   Unused; only there to suppress compatibility notification
@param boolean $bUseException Whether to use an exception

@throws NailsException
@return void
Override the show_error method and pass to the Nails ErrorHandler