public final class DecodeException extends IOException implements LocalizableException
Modifier and Type | Method and Description |
---|---|
static DecodeException |
error(LocalizableMessage message)
Creates a new non-fatal decode exception with the provided message.
|
static DecodeException |
error(LocalizableMessage message,
Throwable cause)
Creates a new non-fatal decode exception with the provided message and
root cause.
|
static DecodeException |
fatalError(LocalizableMessage message)
Creates a new fatal decode exception with the provided message.
|
static DecodeException |
fatalError(LocalizableMessage message,
Throwable cause)
Creates a new fatal decode exception with the provided message and root
cause.
|
LocalizableMessage |
getMessageObject()
Returns the localizable message that explains the problem that occurred.
|
boolean |
isFatal()
Indicates whether the error was fatal and the associated input
source can no longer be used.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static DecodeException error(LocalizableMessage message)
message
- The message that explains the problem that occurred.public static DecodeException error(LocalizableMessage message, Throwable cause)
message
- The message that explains the problem that occurred.cause
- The underlying cause of this exception.public static DecodeException fatalError(LocalizableMessage message)
message
- The message that explains the problem that occurred.public static DecodeException fatalError(LocalizableMessage message, Throwable cause)
message
- The message that explains the problem that occurred.cause
- The underlying cause of this exception.public LocalizableMessage getMessageObject()
LocalizableException
getMessageObject
in interface LocalizableException
public boolean isFatal()
true
if the error was fatal and the associated input
source can no longer be used, otherwise false
.Copyright 2010-2022 ForgeRock AS.