Package org.forgerock.opendj.ldap
Class DecodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.forgerock.opendj.ldap.DecodeException
- All Implemented Interfaces:
Serializable,org.forgerock.i18n.LocalizableException
public final class DecodeException
extends IOException
implements org.forgerock.i18n.LocalizableException
Thrown when data from an input source cannot be decoded, perhaps due to the
data being malformed in some way. By default decoding exceptions are fatal,
indicating that the associated input source is no longer usable.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DecodeExceptionerror(org.forgerock.i18n.LocalizableMessage message) Creates a new non-fatal decode exception with the provided message.static DecodeExceptionCreates a new non-fatal decode exception with the provided message and root cause.static DecodeExceptionfatalError(org.forgerock.i18n.LocalizableMessage message) Creates a new fatal decode exception with the provided message.static DecodeExceptionfatalError(org.forgerock.i18n.LocalizableMessage message, Throwable cause) Creates a new fatal decode exception with the provided message and root cause.org.forgerock.i18n.LocalizableMessagebooleanisFatal()Indicates whether the error was fatal and the associated input source can no longer be used.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
error
Creates a new non-fatal decode exception with the provided message.- Parameters:
message- The message that explains the problem that occurred.- Returns:
- The new non-fatal decode exception.
-
error
Creates a new non-fatal decode exception with the provided message and root cause.- Parameters:
message- The message that explains the problem that occurred.cause- The underlying cause of this exception.- Returns:
- The new non-fatal decode exception.
-
fatalError
Creates a new fatal decode exception with the provided message. The associated input source can no longer be used.- Parameters:
message- The message that explains the problem that occurred.- Returns:
- The new fatal decode exception.
-
fatalError
public static DecodeException fatalError(org.forgerock.i18n.LocalizableMessage message, Throwable cause) Creates a new fatal decode exception with the provided message and root cause. The associated input source can no longer be used.- Parameters:
message- The message that explains the problem that occurred.cause- The underlying cause of this exception.- Returns:
- The new fatal decode exception.
-
getMessageObject
- Specified by:
getMessageObjectin interfaceorg.forgerock.i18n.LocalizableException
-
isFatal
Indicates whether the error was fatal and the associated input source can no longer be used.- Returns:
trueif the error was fatal and the associated input source can no longer be used, otherwisefalse.
-