added login logic excl refresh call

This commit is contained in:
2026-04-06 05:02:46 +02:00
parent 9c3e1469c7
commit 240a366ce8
13 changed files with 589 additions and 46 deletions
@@ -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());
}
}