public class ExceptionTranslator
extends java.lang.Object
| 构造器和说明 |
|---|
ExceptionTranslator() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected net.dreamlu.tool.result.Result<java.lang.String> |
getMessage(java.lang.Throwable e,
java.util.Locale locale,
java.lang.Object[] values) |
net.dreamlu.tool.result.Result<java.lang.String> |
handle(java.lang.Throwable error)
异常处理
1.
|
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(org.springframework.validation.BindException e) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(javax.validation.ConstraintViolationException e) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(org.springframework.web.HttpMediaTypeNotSupportedException e,
java.util.Locale locale) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(org.springframework.http.converter.HttpMessageNotReadableException e) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(org.springframework.web.HttpRequestMethodNotSupportedException e,
java.util.Locale locale) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(net.dreamlu.tool.exception.LocalizedException e,
java.util.Locale locale) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(org.springframework.web.bind.MethodArgumentNotValidException e) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(org.springframework.web.bind.MissingServletRequestParameterException e,
java.util.Locale locale) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(org.springframework.web.servlet.NoHandlerFoundException e,
java.util.Locale locale) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(net.dreamlu.tool.exception.ServiceException e,
java.util.Locale locale) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleError(java.lang.Throwable e,
java.util.Locale locale) |
protected net.dreamlu.tool.result.Result<java.lang.String> |
handleException(java.lang.Throwable error,
java.util.Locale locale) |
public net.dreamlu.tool.result.Result<java.lang.String> handle(java.lang.Throwable error)
error - Throwableprotected net.dreamlu.tool.result.Result<java.lang.String> handleException(java.lang.Throwable error,
java.util.Locale locale)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(org.springframework.web.bind.MissingServletRequestParameterException e,
java.util.Locale locale)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(org.springframework.web.bind.MethodArgumentNotValidException e)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(org.springframework.http.converter.HttpMessageNotReadableException e)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(org.springframework.validation.BindException e)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(javax.validation.ConstraintViolationException e)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(org.springframework.web.servlet.NoHandlerFoundException e,
java.util.Locale locale)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(org.springframework.web.HttpRequestMethodNotSupportedException e,
java.util.Locale locale)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(org.springframework.web.HttpMediaTypeNotSupportedException e,
java.util.Locale locale)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(net.dreamlu.tool.exception.LocalizedException e,
java.util.Locale locale)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(net.dreamlu.tool.exception.ServiceException e,
java.util.Locale locale)
protected net.dreamlu.tool.result.Result<java.lang.String> handleError(java.lang.Throwable e,
java.util.Locale locale)
protected net.dreamlu.tool.result.Result<java.lang.String> getMessage(java.lang.Throwable e,
java.util.Locale locale,
java.lang.Object[] values)