Package eu.europeana.apikey.exception
Class KCIdNotEmptyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
eu.europeana.api.commons.error.EuropeanaApiException
eu.europeana.apikey.exception.KCIdNotEmptyException
- All Implemented Interfaces:
Serializable
public class KCIdNotEmptyException
extends eu.europeana.api.commons.error.EuropeanaApiException
Exception thrown when we try to recreate a keycloak client for an apikey that already has a keycloakId set
- Author:
- Patrick Ehlert Created on 21 jan 2020
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKCIdNotEmptyException(String apiKey, String keycloakId) Instantiates a new Kc id not empty exception.KCIdNotEmptyException(String apiKey, String keycloakId, String action) Instantiates a new Kc id not empty exception. -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.springframework.http.HttpStatusMethods inherited from class eu.europeana.api.commons.error.EuropeanaApiException
doExposeMessage, doLog, getErrorCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
KCIdNotEmptyException
Instantiates a new Kc id not empty exception.- Parameters:
apiKey- the api keykeycloakId- the keycloak id
-
KCIdNotEmptyException
Instantiates a new Kc id not empty exception.- Parameters:
apiKey- the api keykeycloakId- the keycloak idaction- the action
-
-
Method Details
-
doLogStacktrace
public boolean doLogStacktrace()- Overrides:
doLogStacktracein classeu.europeana.api.commons.error.EuropeanaApiException
-
getResponseStatus
public org.springframework.http.HttpStatus getResponseStatus()- Overrides:
getResponseStatusin classeu.europeana.api.commons.error.EuropeanaApiException
-