added login logic excl refresh call
This commit is contained in:
@@ -8,7 +8,7 @@ import org.springframework.web.client.HttpClientErrorException;
|
||||
import org.springframework.web.client.HttpServerErrorException;
|
||||
import org.springframework.web.client.ResourceAccessException;
|
||||
|
||||
import static com.vaessl.app.exception.ErrorMessages.*;
|
||||
import static com.vaessl.app.exception.ErrorMessage.*;
|
||||
|
||||
@RestControllerAdvice
|
||||
public class GlobalExceptionHandler {
|
||||
@@ -40,4 +40,9 @@ public class GlobalExceptionHandler {
|
||||
.forStatusAndDetail(e.getStatusCode(),
|
||||
SERVER_ERROR_GENERAL.getMessage() + e.getStatusText());
|
||||
}
|
||||
|
||||
@ExceptionHandler(ProviderNotFoundException.class)
|
||||
public ProblemDetail handleWrongServiceType(ProviderNotFoundException e) {
|
||||
return ProblemDetail.forStatusAndDetail(WRONG_SERVICE_TYPE.getStatus(), WRONG_SERVICE_TYPE.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user