src/main/java/edu/ucla/library/bucketeer/handlers/LoadCsvHandler.java
private void returnError(final HttpServerResponse aResponse, final String aMessage, final String aDetail) {
        final String errorName = LOGGER.getMessage(MessageCodes.BUCKETEER_074);
        final String errorMessage = LOGGER.getMessage(aMessage, aDetail);

        LOGGER.error(errorMessage);

        aResponse.setStatusCode(HTTP.INTERNAL_SERVER_ERROR);
        aResponse.setStatusMessage(errorMessage);
        aResponse.putHeader(Constants.CONTENT_TYPE, Constants.HTML);
        aResponse.end(StringUtils.format(myExceptionPage, errorName + errorMessage));
    }
/**
     * Returns an error page to the browser.
     *
     * @param aResponse An HTTP response
     * @param aMessage An error message
     * @param aDetail Additional details to send along with the error message
     */
Returns an error page to the browser.
@param aResponse An HTTP response
@param aMessage An error message
@param aDetail Additional details to send along with the error message
Returns an error page to the browser . @param aResponse An HTTP response @param aMessage An error message @param aDetail Additional details to send along with the error message
private void returnError(final HttpServerResponse aResponse, final String aMessage, final String aDetail) {
        final String errorName = LOGGER.getMessage(MessageCodes.BUCKETEER_074);
        final String errorMessage = LOGGER.getMessage(aMessage, aDetail);
        LOGGER.error(errorMessage);
        aResponse.setStatusCode(HTTP.INTERNAL_SERVER_ERROR);
        aResponse.setStatusMessage(errorMessage);
        aResponse.putHeader(Constants.CONTENT_TYPE, Constants.HTML);
        aResponse.end(StringUtils.format(myExceptionPage, errorName + errorMessage));
    }
private void returnError ( final HttpServerResponse aResponse , final String aMessage , final String aDetail ) { final String errorName = LOGGER . getMessage ( MessageCodes . BUCKETEER_074 ) ; final String errorMessage = LOGGER . getMessage ( aMessage , aDetail ) ; LOGGER . error ( errorMessage ) ; aResponse . setStatusCode ( HTTP . INTERNAL_SERVER_ERROR ) ; aResponse . setStatusMessage ( errorMessage ) ; aResponse . putHeader ( Constants . CONTENT_TYPE , Constants . HTML ) ; aResponse . end ( StringUtils . format ( myExceptionPage , errorName + errorMessage ) ) ; }
Returns an error page to the browser.
Returns an error page to the browser .