String messageFormat =
Messages.getMessage("exceptionOccurredDuringInvocation", exceptionName);
if (t instanceof WebApplicationException) {
WebApplicationException wae = (WebApplicationException)t;
int statusCode = wae.getResponse().getStatus();
Status status = Response.Status.fromStatusCode(statusCode);
String statusSep = "";
String statusMessage = "";
if (status != null) {
statusSep = " - ";
statusMessage = status.toString();
}
exceptionName =
String.format("%s (%d%s%s)", exceptionName, statusCode, statusSep, statusMessage);
if (statusCode >= 500) {
if (logger.isDebugEnabled()) {