public class InterceptException extends Exception
RestExceptionHandlerAdvice.interceptException(InterceptException, WebRequest).
Usually, you need to serialize the object and respond. But it may be differ from global processing.
Throwing InterceptException makes it easier.
| 构造器和说明 |
|---|
InterceptException() |
InterceptException(org.springframework.http.HttpStatus status,
Object result) |
InterceptException(Object result) |
Copyright © 2018. All rights reserved.