Package eu.europeana.apikey.exception
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 Summary
ConstructorsConstructorDescriptionInstantiates a new Forbidden exception.ForbiddenException(String actionName) Instantiates a new Forbidden exception.ForbiddenException(String error, String message) Instantiates a new Forbidden 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
-
ForbiddenException
public ForbiddenException()Instantiates a new Forbidden exception. -
ForbiddenException
Instantiates a new Forbidden exception.- Parameters:
actionName- the action name
-
ForbiddenException
Instantiates a new Forbidden exception.- Parameters:
error- the errormessage- the message
-
-
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
-