java.lang.Object
cn.net.pap.example.admin.config.exception.GlobalExceptionHandler
@RestControllerAdvice
public class GlobalExceptionHandler
extends Object
-
Constructor Summary
Constructors
-
Method Summary
exceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException methodArgumentNotValidException)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GlobalExceptionHandler
public GlobalExceptionHandler()
-
Method Details
-
exceptionHandler
@ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class)
public Map exceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException methodArgumentNotValidException)
throws Exception
- Throws:
Exception