class ErrorUtils {

    public static String getErrorMessage(HttpServletRequest request) {
        final Throwable exc = (Throwable) request.getAttribute(ATTR_ERROR_EXCEPTION);
        return exc != null ? exc.getMessage() : UNEXPECTED_ERROR_OCCURRED;
    }

    private  ErrorUtils();

}