Package org.apache.commons.lang3
Class SerializationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.commons.lang3.SerializationException
-
- All Implemented Interfaces:
java.io.Serializable
public class SerializationException extends java.lang.RuntimeException
Exception thrown when the Serialization process fails.
The original error is wrapped within this one.
#NotThreadSafe# because Throwable is not thread-safe
- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializationException()
Constructs a newSerializationException
without specified detail message.SerializationException(java.lang.String msg)
Constructs a newSerializationException
with specified detail message.SerializationException(java.lang.String msg, java.lang.Throwable cause)
Constructs a newSerializationException
with specified detail message and nestedThrowable
.SerializationException(java.lang.Throwable cause)
Constructs a newSerializationException
with specified nestedThrowable
.
-
-
-
Constructor Detail
-
SerializationException
public SerializationException()
Constructs a new
SerializationException
without specified detail message.
-
SerializationException
public SerializationException(java.lang.String msg)
Constructs a new
SerializationException
with specified detail message.- Parameters:
msg
- The error message.
-
SerializationException
public SerializationException(java.lang.Throwable cause)
Constructs a new
SerializationException
with specified nestedThrowable
.- Parameters:
cause
- TheException
orError
that caused this exception to be thrown.
-
SerializationException
public SerializationException(java.lang.String msg, java.lang.Throwable cause)
Constructs a new
SerializationException
with specified detail message and nestedThrowable
.- Parameters:
msg
- The error message.cause
- TheException
orError
that caused this exception to be thrown.
-
-