Class ApiKeyExistsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
eu.europeana.api.commons.error.EuropeanaApiException
eu.europeana.apikey.exception.ApiKeyExistsException
All Implemented Interfaces:
Serializable

public class ApiKeyExistsException extends eu.europeana.api.commons.error.EuropeanaApiException
Exception thrown when trying to create a new API key for an application name and email address that is already in use
Author:
Patrick Ehlert Created on 18 nov 2019
See Also:
  • Constructor Details

    • ApiKeyExistsException

      public ApiKeyExistsException(String email, String appName)
      Instantiates a new Api key exists exception.
      Parameters:
      email - the email
      appName - the app name
  • 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