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 Details

    • KCIdNotEmptyException

      public KCIdNotEmptyException(String apiKey, String keycloakId)
      Instantiates a new Kc id not empty exception.
      Parameters:
      apiKey - the api key
      keycloakId - the keycloak id
    • KCIdNotEmptyException

      public KCIdNotEmptyException(String apiKey, String keycloakId, String action)
      Instantiates a new Kc id not empty exception.
      Parameters:
      apiKey - the api key
      keycloakId - the keycloak id
      action - the action
  • Method Details

    • doLogStacktrace

      public boolean doLogStacktrace()
      Overrides:
      doLogStacktrace in class eu.europeana.api.commons.error.EuropeanaApiException
    • getResponseStatus

      public org.springframework.http.HttpStatus getResponseStatus()
      Overrides:
      getResponseStatus in class eu.europeana.api.commons.error.EuropeanaApiException