Class GlobalExceptionHandler

java.lang.Object
org.qubership.atp.auth.springbootstarter.handlers.GlobalExceptionHandler

@ControllerAdvice @Order(2147483647) public class GlobalExceptionHandler extends Object
  • Constructor Details

    • GlobalExceptionHandler

      public GlobalExceptionHandler()
  • Method Details

    • commonHandler

      @ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<ErrorResponse> commonHandler(Exception exception, javax.servlet.http.HttpServletRequest request) throws Exception
      Global handler for exceptions.
      Parameters:
      exception - - Exception object
      request - - HttpServletRequest
      Returns:
      ErrorResponse entity
      Throws:
      Exception