class HttpError500Handler extends AbstractHtmlErrorHandler {

    public HttpError500Handler setReason(final Throwable e) {

        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("<p style=\"color: red; font-weight: bold;\">");
        if (!StringUtilities.isEmpty(e.getMessage())) {
            stringBuilder.append(e.getMessage() + " ");
        }
        stringBuilder.append(e.getClass().getName() + "</p>\n")
                .append("<pre>")
                .append(exceptionToString(e))
                .append("</pre>");

        setExplanation(stringBuilder.toString());

        return this;
    }

    public  HttpError500Handler();

}