| 限定符和类型 | 类和说明 |
|---|---|
class |
SharedErrorCode |
| 限定符和类型 | 方法和说明 |
|---|---|
ErrorCode |
ErrorContainer.getErrorCode() |
ErrorCode |
ApplicationException.getErrorCode() |
ErrorCode |
ErrorCodes.mappedErrorCode(Class clazz) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected ErrorContainer |
ResponseEntityExceptionHandler.convert2ErrorContainer(Throwable throwable,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request) |
protected ErrorContainer |
ResponseEntityExceptionHandler.convert2ErrorContainer(Throwable throwable,
ErrorCode errorCode,
Object[] messageArguments,
javax.servlet.http.HttpServletRequest request) |
protected String |
ResponseEntityExceptionHandler.getErrorMessage(Throwable throwable,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request) |
protected String |
ResponseEntityExceptionHandler.getErrorMessage(Throwable throwable,
ErrorCode errorCode,
Object[] messageArguments,
javax.servlet.http.HttpServletRequest request) |
protected org.springframework.http.ResponseEntity<ErrorContainer> |
ResponseEntityExceptionHandler.getResponseEntity(javax.servlet.http.HttpServletRequest request,
org.springframework.http.HttpHeaders httpHeaders,
Throwable throwable,
ErrorCode errorCode) |
protected org.springframework.http.ResponseEntity<ErrorContainer> |
ResponseEntityExceptionHandler.getResponseEntity(javax.servlet.http.HttpServletRequest request,
org.springframework.http.HttpHeaders httpHeaders,
Throwable throwable,
ErrorCode errorCode,
Object[] messageArguments) |
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleAccessDeniedException(org.springframework.security.access.AccessDeniedException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request) |
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleBindException(org.springframework.validation.BindException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for BindException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleConversionNotSupported(org.springframework.beans.ConversionNotSupportedException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for ConversionNotSupportedException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable(org.springframework.web.HttpMediaTypeNotAcceptableException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for HttpMediaTypeNotAcceptableException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(org.springframework.web.HttpMediaTypeNotSupportedException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for HttpMediaTypeNotSupportedException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpMessageNotReadable(org.springframework.http.converter.HttpMessageNotReadableException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for HttpMessageNotReadableException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpMessageNotWritable(org.springframework.http.converter.HttpMessageNotWritableException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for HttpMessageNotWritableException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleHttpRequestMethodNotSupported(org.springframework.web.HttpRequestMethodNotSupportedException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for HttpRequestMethodNotSupportedException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleMethodArgumentNotValid(org.springframework.web.bind.MethodArgumentNotValidException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for MethodArgumentNotValidException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleMissingServletRequestParameter(org.springframework.web.bind.MissingServletRequestParameterException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for MissingServletRequestParameterException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleMissingServletRequestPart(org.springframework.web.multipart.support.MissingServletRequestPartException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for MissingServletRequestPartException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleNoHandlerFoundException(org.springframework.web.servlet.NoHandlerFoundException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for NoHandlerFoundException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleNoSuchRequestHandlingMethod(org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for NoSuchRequestHandlingMethodException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleServletRequestBindingException(org.springframework.web.bind.ServletRequestBindingException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for ServletRequestBindingException.
|
protected org.springframework.http.ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleTypeMismatch(org.springframework.beans.TypeMismatchException exception,
org.springframework.http.HttpHeaders headers,
ErrorCode errorCode,
javax.servlet.http.HttpServletRequest request)
Customize the response for TypeMismatchException.
|
void |
ErrorCodes.mapErrorCode(Class clazz,
ErrorCode errorCode) |
void |
ErrorContainer.setErrorCode(ErrorCode errorCode) |
| 构造器和说明 |
|---|
ApplicationException(ErrorCode errorCode) |
ApplicationException(ErrorCode errorCode,
Object[] arguments) |
ApplicationException(ErrorCode errorCode,
Object[] arguments,
String message) |
ApplicationException(ErrorCode errorCode,
Object[] arguments,
String message,
Throwable cause) |
ApplicationException(ErrorCode errorCode,
Object[] arguments,
Throwable cause) |
ApplicationException(ErrorCode errorCode,
String message) |
ApplicationException(ErrorCode errorCode,
String message,
Throwable cause) |
ApplicationException(ErrorCode errorCode,
Throwable cause) |
Copyright © 2015. All rights reserved.