src/main/java/edu/ucla/library/bucketeer/handlers/BatchJobStatusHandler.java
private void returnError(final Throwable aThrowable, final String aMessageCode, final String aDetails,
            final HttpServerResponse aResponse) {
        final String errorDetails = LOGGER.getMessage(aMessageCode, aDetails);

        if (aThrowable != null) {
            LOGGER.error(aThrowable, errorDetails);
        } else {
            LOGGER.error(errorDetails);
        }

        aResponse.setStatusCode(HTTP.INTERNAL_SERVER_ERROR);
        aResponse.setStatusMessage(errorDetails);
        aResponse.end(errorDetails);
    }
/**
     * Return an error message to the browser.
     *
     * @param aThrowable An exception with a stack trace
     * @param aMessageCode A MessageCode string
     * @param aDetail Details about the exception
     * @param aResponse An HTTP server response
     */
Return an error message to the browser.
@param aThrowable An exception with a stack trace
@param aMessageCode A MessageCode string
@param aDetail Details about the exception
@param aResponse An HTTP server response
Return an error message to the browser . @param aThrowable An exception with a stack trace @param aMessageCode A MessageCode string @param aDetail Details about the exception @param aResponse An HTTP server response
private void returnError(final Throwable aThrowable, final String aMessageCode, final String aDetails,
            final HttpServerResponse aResponse) {
        final String errorDetails = LOGGER.getMessage(aMessageCode, aDetails);
        if (aThrowable != null) {
            LOGGER.error(aThrowable, errorDetails);
        } else {
            LOGGER.error(errorDetails);
        }
        aResponse.setStatusCode(HTTP.INTERNAL_SERVER_ERROR);
        aResponse.setStatusMessage(errorDetails);
        aResponse.end(errorDetails);
    }
private void returnError ( final Throwable aThrowable , final String aMessageCode , final String aDetails , final HttpServerResponse aResponse ) { final String errorDetails = LOGGER . getMessage ( aMessageCode , aDetails ) ; if ( aThrowable != null ) { LOGGER . error ( aThrowable , errorDetails ) ; } else { LOGGER . error ( errorDetails ) ; } aResponse . setStatusCode ( HTTP . INTERNAL_SERVER_ERROR ) ; aResponse . setStatusMessage ( errorDetails ) ; aResponse . end ( errorDetails ) ; }
Return an error message to the browser.
Return an error message to the browser .