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);
        }
    }