Package com.bytedesk.core.exception
Class GlobalControllerAdvice
java.lang.Object
com.bytedesk.core.exception.GlobalControllerAdvice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
handleAuthorizationDeniedException
(org.springframework.security.authorization.AuthorizationDeniedException ex) org.springframework.http.ResponseEntity<?>
handleBadCredentialsException
(org.springframework.security.authentication.BadCredentialsException e) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
handleHttpRequestMethodNotSupportedException
(org.springframework.web.HttpRequestMethodNotSupportedException ex) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
handleInternalAuthenticationServiceException
(org.springframework.security.authentication.InternalAuthenticationServiceException e) org.springframework.http.ResponseEntity<?>
handleListenerExecutionFailedException
(org.springframework.jms.listener.adapter.ListenerExecutionFailedException e) org.springframework.http.ResponseEntity<?>
handleMEntityNotFoundException
(jakarta.persistence.EntityNotFoundException ex) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
handleNoResourceFoundException
(org.springframework.web.servlet.resource.NoResourceFoundException e) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
handleRequestRejectedException
(org.springframework.security.web.firewall.RequestRejectedException ex) org.springframework.http.ResponseEntity<?>
handleResponseStatusException
(org.springframework.web.server.ResponseStatusException ex) org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
org.springframework.http.ResponseEntity<?>
handleUsernameNotFoundException
(org.springframework.security.core.userdetails.UsernameNotFoundException e) org.springframework.http.ResponseEntity<?>
handleWebSocketTimeoutException
(org.eclipse.jetty.websocket.core.exception.WebSocketTimeoutException ex)
-
Constructor Details
-
GlobalControllerAdvice
public GlobalControllerAdvice()
-
-
Method Details
-
handleUsernameExistsException
@ExceptionHandler(UsernameExistsException.class) public org.springframework.http.ResponseEntity<?> handleUsernameExistsException(UsernameExistsException e) -
handleEmailExistsException
@ExceptionHandler(EmailExistsException.class) public org.springframework.http.ResponseEntity<?> handleEmailExistsException(EmailExistsException e) -
handleMobileExistsException
@ExceptionHandler(MobileExistsException.class) public org.springframework.http.ResponseEntity<?> handleMobileExistsException(MobileExistsException e) -
handleUsernameNotFoundException
@ExceptionHandler(org.springframework.security.core.userdetails.UsernameNotFoundException.class) public org.springframework.http.ResponseEntity<?> handleUsernameNotFoundException(org.springframework.security.core.userdetails.UsernameNotFoundException e) -
handleEmailNotFoundException
@ExceptionHandler(EmailNotFoundException.class) public org.springframework.http.ResponseEntity<?> handleEmailNotFoundException(EmailNotFoundException e) -
handleMobileNotFoundException
@ExceptionHandler(MobileNotFoundException.class) public org.springframework.http.ResponseEntity<?> handleMobileNotFoundException(MobileNotFoundException e) -
handleNotFoundException
@ExceptionHandler(NotFoundException.class) public org.springframework.http.ResponseEntity<?> handleNotFoundException(NotFoundException e) -
handleUserDisabledException
@ExceptionHandler(UserDisabledException.class) public org.springframework.http.ResponseEntity<?> handleUserDisabledException(UserDisabledException e) -
handleForbiddenException
@ExceptionHandler(ForbiddenException.class) public org.springframework.http.ResponseEntity<?> handleForbiddenException(ForbiddenException e) -
handleInternalAuthenticationServiceException
@ExceptionHandler(org.springframework.security.authentication.InternalAuthenticationServiceException.class) public org.springframework.http.ResponseEntity<?> handleInternalAuthenticationServiceException(org.springframework.security.authentication.InternalAuthenticationServiceException e) -
handleNoResourceFoundException
@ExceptionHandler(org.springframework.web.servlet.resource.NoResourceFoundException.class) public org.springframework.http.ResponseEntity<?> handleNoResourceFoundException(org.springframework.web.servlet.resource.NoResourceFoundException e) -
handleRuntimeException
@ExceptionHandler(java.lang.RuntimeException.class) public org.springframework.http.ResponseEntity<?> handleRuntimeException(RuntimeException e) -
handleIllegalArgumentException
@ExceptionHandler(java.lang.IllegalArgumentException.class) public org.springframework.http.ResponseEntity<?> handleIllegalArgumentException(IllegalArgumentException e) -
handleListenerExecutionFailedException
@ExceptionHandler(org.springframework.jms.listener.adapter.ListenerExecutionFailedException.class) public org.springframework.http.ResponseEntity<?> handleListenerExecutionFailedException(org.springframework.jms.listener.adapter.ListenerExecutionFailedException e) -
handleTabooException
@ExceptionHandler(TabooException.class) public org.springframework.http.ResponseEntity<?> handleTabooException(TabooException e) -
handleBadCredentialsException
@ExceptionHandler(org.springframework.security.authentication.BadCredentialsException.class) public org.springframework.http.ResponseEntity<?> handleBadCredentialsException(org.springframework.security.authentication.BadCredentialsException e) -
handleNullPointerException
@ExceptionHandler(java.lang.NullPointerException.class) public org.springframework.http.ResponseEntity<?> handleNullPointerException(NullPointerException ex) -
handleResponseStatusException
@ExceptionHandler(org.springframework.web.server.ResponseStatusException.class) public org.springframework.http.ResponseEntity<?> handleResponseStatusException(org.springframework.web.server.ResponseStatusException ex) -
handleWebSocketTimeoutException
@ExceptionHandler(org.eclipse.jetty.websocket.core.exception.WebSocketTimeoutException.class) public org.springframework.http.ResponseEntity<?> handleWebSocketTimeoutException(org.eclipse.jetty.websocket.core.exception.WebSocketTimeoutException ex) -
handleHttpRequestMethodNotSupportedException
@ExceptionHandler(org.springframework.web.HttpRequestMethodNotSupportedException.class) public org.springframework.http.ResponseEntity<?> handleHttpRequestMethodNotSupportedException(org.springframework.web.HttpRequestMethodNotSupportedException ex) -
handleAuthorizationDeniedException
@ExceptionHandler(org.springframework.security.authorization.AuthorizationDeniedException.class) public org.springframework.http.ResponseEntity<?> handleAuthorizationDeniedException(org.springframework.security.authorization.AuthorizationDeniedException ex) -
handleRequestRejectedException
@ExceptionHandler(org.springframework.security.web.firewall.RequestRejectedException.class) public org.springframework.http.ResponseEntity<?> handleRequestRejectedException(org.springframework.security.web.firewall.RequestRejectedException ex) -
handleMEntityNotFoundException
@ExceptionHandler(jakarta.persistence.EntityNotFoundException.class) public org.springframework.http.ResponseEntity<?> handleMEntityNotFoundException(jakarta.persistence.EntityNotFoundException ex) -
handleException
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<?> handleException(Exception e)
-