Package org.wildfly.common.codec
Class DecodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.wildfly.common.codec.DecodeException
-
- All Implemented Interfaces:
Serializable
public class DecodeException extends IllegalArgumentException
An exception which indicates that decoding has failed due to invalid or truncated input.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DecodeException()Constructs a newDecodeExceptioninstance.DecodeException(String msg)Constructs a newDecodeExceptioninstance with an initial message.DecodeException(String msg, Throwable cause)Constructs a newDecodeExceptioninstance with an initial message and cause.DecodeException(Throwable cause)Constructs a newDecodeExceptioninstance with an initial cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DecodeException
public DecodeException()
Constructs a newDecodeExceptioninstance. The message is left blank (null), and no cause is specified.
-
DecodeException
public DecodeException(String msg)
Constructs a newDecodeExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the message
-
DecodeException
public DecodeException(Throwable cause)
Constructs a newDecodeExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisDecodeException; otherwise the message is left blank (null).- Parameters:
cause- the cause
-
-