@RestControllerAdvice
public class ExceptionControllerAdvice
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
| 构造器和说明 |
|---|
ExceptionControllerAdvice() |
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch@ExceptionHandler(value=GlobalException.class) @ResponseBody public ExceptionAdviceEntity globalExceptionHanlder(GlobalException ex)
@ExceptionHandler(value=java.lang.ArithmeticException.class) @ResponseBody public ExceptionAdviceEntity arithmeticExceptionHanlder(ArithmeticException ex)
@ExceptionHandler(value=java.lang.ArrayIndexOutOfBoundsException.class) @ResponseBody public ExceptionAdviceEntity arrayIndexOutOfBoundsExceptionHanlder(ArrayIndexOutOfBoundsException ex)
@ExceptionHandler(value=java.lang.ArrayStoreException.class) @ResponseBody public ExceptionAdviceEntity arrayStoreExceptionHanlder(ArrayStoreException ex)
@ExceptionHandler(value=java.lang.ClassCastException.class) @ResponseBody public ExceptionAdviceEntity classCastExceptionHanlder(ClassCastException ex)
@ExceptionHandler(value=java.lang.ClassNotFoundException.class) @ResponseBody public ExceptionAdviceEntity classNotFoundExceptionHanlder(ClassNotFoundException ex)
@ExceptionHandler(value=java.lang.CloneNotSupportedException.class) @ResponseBody public ExceptionAdviceEntity cloneNotSupportedExceptionHanlder(CloneNotSupportedException ex)
@ExceptionHandler(value=java.lang.EnumConstantNotPresentException.class) @ResponseBody public ExceptionAdviceEntity enumConstantNotPresentExceptionHanlder(EnumConstantNotPresentException ex)
@ExceptionHandler(value=java.lang.IllegalAccessException.class) @ResponseBody public ExceptionAdviceEntity illegalAccessExceptionHanlder(IllegalAccessException ex)
@ExceptionHandler(value=java.lang.IllegalArgumentException.class) @ResponseBody public ExceptionAdviceEntity illegalArgumentExceptionHanlder(IllegalArgumentException ex)
@ExceptionHandler(value=java.lang.IllegalMonitorStateException.class) @ResponseBody public ExceptionAdviceEntity illegalMonitorStateExceptionHanlder(IllegalMonitorStateException ex)
@ExceptionHandler(value=java.lang.IllegalStateException.class) @ResponseBody public ExceptionAdviceEntity illegalStateExceptionHanlder(IllegalStateException ex)
@ExceptionHandler(value=java.lang.IllegalThreadStateException.class) @ResponseBody public ExceptionAdviceEntity illegalThreadStateExceptionHanlder(IllegalThreadStateException ex)
@ExceptionHandler(value=java.lang.IndexOutOfBoundsException.class) @ResponseBody public ExceptionAdviceEntity indexOutOfBoundsExceptionHanlder(IndexOutOfBoundsException ex)
@ExceptionHandler(value=java.lang.InstantiationException.class) @ResponseBody public ExceptionAdviceEntity instantiationExceptionHanlder(InstantiationException ex)
@ExceptionHandler(value=java.lang.InterruptedException.class) @ResponseBody public ExceptionAdviceEntity interruptedExceptionHanlder(InterruptedException ex)
@ExceptionHandler(value=java.lang.NegativeArraySizeException.class) @ResponseBody public ExceptionAdviceEntity negativeArraySizeExceptionHanlder(NegativeArraySizeException ex)
@ExceptionHandler(value=java.lang.NoSuchFieldException.class) @ResponseBody public ExceptionAdviceEntity noSuchFieldExceptionnHanlder(NoSuchFieldException ex)
@ExceptionHandler(value=java.lang.NoSuchMethodException.class) @ResponseBody public ExceptionAdviceEntity noSuchMethodExceptionHanlder(NoSuchMethodException ex)
@ExceptionHandler(value=java.lang.NullPointerException.class) @ResponseBody public ExceptionAdviceEntity nullPointerExceptionHanlder(NullPointerException ex)
@ExceptionHandler(value=java.lang.NumberFormatException.class) @ResponseBody public ExceptionAdviceEntity numberFormatExceptionHanlder(NumberFormatException ex)
@ExceptionHandler(value=java.lang.ReflectiveOperationException.class) @ResponseBody public ExceptionAdviceEntity reflectiveOperationExceptionHanlder(ReflectiveOperationException ex)
@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseBody public ExceptionAdviceEntity runtimeExceptionHanlder(RuntimeException ex)
@ExceptionHandler(value=java.lang.SecurityException.class) @ResponseBody public ExceptionAdviceEntity securityExceptionHanlder(SecurityException ex)
@ExceptionHandler(value=java.lang.StringIndexOutOfBoundsException.class) @ResponseBody public ExceptionAdviceEntity stringIndexOutOfBoundsExceptionHanlder(StringIndexOutOfBoundsException ex)
@ExceptionHandler(value=java.lang.TypeNotPresentException.class) @ResponseBody public ExceptionAdviceEntity typeNotPresentExceptionHanlder(TypeNotPresentException ex)
@ExceptionHandler(value=java.lang.UnsupportedOperationException.class) @ResponseBody public ExceptionAdviceEntity unsupportedOperationExceptionHanlder(UnsupportedOperationException ex)
@ExceptionHandler(value=java.lang.Exception.class) @ResponseBody public ExceptionAdviceEntity exceptionHanlder(Throwable ex)
Copyright © 2019. All rights reserved.