Package org.jsoup
Class SerializationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jsoup.SerializationException
-
- All Implemented Interfaces:
java.io.Serializable
public final class SerializationException extends java.lang.RuntimeException
A SerializationException is raised whenever serialization of a DOM element fails. This exception usually wraps anIOException
that may be thrown due to an inaccessible output stream.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializationException()
Creates and initializes a new serialization exception with no error message and cause.SerializationException(java.lang.String message)
Creates and initializes a new serialization exception with the given error message and no cause.SerializationException(java.lang.String message, java.lang.Throwable cause)
Creates and initializes a new serialization exception with the given error message and cause.SerializationException(java.lang.Throwable cause)
Creates and initializes a new serialization exception with the specified cause and an error message of(cause==null ? null : cause.toString())
(which typically contains the class and error message ofcause
).
-
-
-
Constructor Detail
-
SerializationException
public SerializationException()
Creates and initializes a new serialization exception with no error message and cause.
-
SerializationException
public SerializationException(java.lang.String message)
Creates and initializes a new serialization exception with the given error message and no cause.- Parameters:
message
- the error message of the new serialization exception (may benull
).
-
SerializationException
public SerializationException(java.lang.Throwable cause)
Creates and initializes a new serialization exception with the specified cause and an error message of(cause==null ? null : cause.toString())
(which typically contains the class and error message ofcause
).- Parameters:
cause
- the cause of the new serialization exception (may benull
).
-
SerializationException
public SerializationException(java.lang.String message, java.lang.Throwable cause)
Creates and initializes a new serialization exception with the given error message and cause.- Parameters:
message
- the error message of the new serialization exception.cause
- the cause of the new serialization exception.
-
-