Package eu.europeana.apikey.exception
Class KCIdNotEmptyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- eu.europeana.apikey.exception.ApiKeyException
-
- eu.europeana.apikey.exception.KCIdNotEmptyException
-
- All Implemented Interfaces:
Serializable
@ResponseStatus(BAD_REQUEST) public class KCIdNotEmptyException extends ApiKeyException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KCIdNotEmptyException(String apiKey, String keycloakId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoLogStacktrace()-
Methods inherited from class eu.europeana.apikey.exception.ApiKeyException
doLog, getError, getMessage, getStatus, getTimestamp
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
doLogStacktrace
public boolean doLogStacktrace()
- Overrides:
doLogStacktracein classApiKeyException- Returns:
- boolean indicating whether the stacktrace of the exception should be logged or not (only works when doLog returns true)
-
-