public class CheckedException extends Exception implements de.espirit.common.LocalizableError
CheckedException
and its subclasses are a form of Exception
that indicates conditions
that a reasonable application might want to catch.Constructor and Description |
---|
CheckedException()
Constructor for a checked exception.
|
CheckedException(String message)
Constructor for a checked exception.
|
CheckedException(String message,
Throwable cause)
Constructor for a checked exception.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getContext()
Return a
Map of contexts for the exception. |
String |
getErrorCode()
Return the error code for the exception.
|
String |
getLocalizedMessage(ResourceBundle bundle)
Return a localized exception message.
|
boolean |
isInfoOnly() |
void |
setErrorCode(String errorCode)
Set the error code for the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CheckedException()
public CheckedException(String message)
message
- The message for the checked Exceptionpublic void setErrorCode(String errorCode)
ResourceBundle
.errorCode
- The error code for the exception@NotNull public String getErrorCode()
getErrorCode
in interface de.espirit.common.LocalizableError
setErrorCode(String errorCode)
@NotNull public String getLocalizedMessage(ResourceBundle bundle)
getLocalizedMessage
in interface de.espirit.common.LocalizableError
bundle
- ResourceBundle
that contains the localized message@NotNull public Map<String,Object> getContext()
Map
of contexts for the exception.getContext
in interface de.espirit.common.LocalizableError
@HideJavaDoc public boolean isInfoOnly()
isInfoOnly
in interface de.espirit.common.LocalizableError
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210