public abstract class AbstractExceptionHandler<T extends java.lang.Throwable>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
AbstractExceptionHandler(java.lang.String exceptionName) |
Modifier and Type | Method and Description |
---|---|
ErrorResponse |
getErrorResponse(T ex) |
protected java.util.Collection<FieldError> |
getErrors(T ex) |
java.lang.String |
getExceptionName() |
protected java.lang.String |
getMessage(T ex) |
protected org.springframework.http.HttpStatus |
getStatus(T ex) |
public AbstractExceptionHandler(java.lang.String exceptionName)
public java.lang.String getExceptionName()
protected java.lang.String getMessage(T ex)
protected org.springframework.http.HttpStatus getStatus(T ex)
protected java.util.Collection<FieldError> getErrors(T ex)
public ErrorResponse getErrorResponse(T ex)