Class GlobalExceptionHandler
java.lang.Object
dev.inspector.spring.interceptors.error.GlobalExceptionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String> handleException(Exception ex, javax.servlet.http.HttpServletRequest request) org.springframework.http.ResponseEntity<String> handleNotFoundException(org.springframework.web.servlet.NoHandlerFoundException ex, javax.servlet.http.HttpServletRequest request)
-
Constructor Details
-
GlobalExceptionHandler
public GlobalExceptionHandler()
-
-
Method Details
-
handleException
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<String> handleException(Exception ex, javax.servlet.http.HttpServletRequest request) -
handleNotFoundException
@ExceptionHandler(org.springframework.web.servlet.NoHandlerFoundException.class) public org.springframework.http.ResponseEntity<String> handleNotFoundException(org.springframework.web.servlet.NoHandlerFoundException ex, javax.servlet.http.HttpServletRequest request)
-