Package eu.europeana.apikey.exception
Class ApiKeyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- eu.europeana.apikey.exception.ApiKeyException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApiKeyDeprecatedException,ApiKeyExistsException,ApiKeyNotDeprecatedException,ApiKeyNotFoundException,CaptchaException,ForbiddenException,KCClientExistsException,KCIdNotEmptyException,MissingDataException,MissingKCClientException,MissingKeyException,SendMailException
public class ApiKeyException extends Exception
Created by luthien on 01/08/2017.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiKeyException(String message)ApiKeyException(String error, String message)ApiKeyException(String message, Throwable ex)ApiKeyException(Throwable ex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoLog()booleandoLogStacktrace()StringgetError()StringgetMessage()intgetStatus()DategetTimestamp()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
doLog
public boolean doLog()
- Returns:
- boolean indicating whether this type of exception should be logged or not
-
doLogStacktrace
public boolean doLogStacktrace()
- Returns:
- boolean indicating whether the stacktrace of the exception should be logged or not (only works when doLog returns true)
-
getTimestamp
public Date getTimestamp()
-
getStatus
public int getStatus()
-
getError
public String getError()
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-