Package eu.europeana.apikey.exception
Class ForbiddenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- eu.europeana.apikey.exception.ApiKeyException
-
- eu.europeana.apikey.exception.ForbiddenException
-
- All Implemented Interfaces:
Serializable
@ResponseStatus(FORBIDDEN) public class ForbiddenException extends ApiKeyException
Exception thrown when there is not enough information, e.g. to create a new API key- Author:
- Patrick Ehlert Created on 18 nov 2019
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ForbiddenException()ForbiddenException(String actionName)
-
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
-
-
-
-
Constructor Detail
-
ForbiddenException
public ForbiddenException()
-
ForbiddenException
public ForbiddenException(String actionName)
-
-
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)
-
-