Uses of Class
com.lpvs.exception.ErrorResponse
Packages that use ErrorResponse
Package
Description
This package contains custom exception classes used in the application to represent various error scenarios.
-
Uses of ErrorResponse in com.lpvs.exception
Methods in com.lpvs.exception that return types with arguments of type ErrorResponseModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ErrorResponse>
PageControllerAdvice.handleSQLException
(IllegalArgumentException e) HandlesIllegalArgumentException
by logging the error and returning anerrorResponse
with CONFLICT status.org.springframework.http.ResponseEntity<ErrorResponse>
PageControllerAdvice.loginFailedHandle
(LoginFailedException e) HandlesLoginFailedException
by logging the error and returning anerrorResponse
with UNAUTHORIZED status.org.springframework.http.ResponseEntity<ErrorResponse>
PageControllerAdvice.wrongAccessHandle
(WrongAccessException e) HandlesWrongAccessException
by logging the error and returning anerrorResponse
with FORBIDDEN status.