Class ForbiddenException

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

public class ForbiddenException extends eu.europeana.api.commons.error.EuropeanaApiException
Exception thrown when there is not enough information, e.g. to create a new API key
Author:
Patrick Ehlert Created on 18 nov 2019 Modified on 4 Feb 2021
See Also:
  • Constructor Details

    • ForbiddenException

      public ForbiddenException()
      Instantiates a new Forbidden exception.
    • ForbiddenException

      public ForbiddenException(String actionName)
      Instantiates a new Forbidden exception.
      Parameters:
      actionName - the action name
    • ForbiddenException

      public ForbiddenException(String error, String message)
      Instantiates a new Forbidden exception.
      Parameters:
      error - the error
      message - the message
  • 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