Class SerializerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.github.oberhoff.distributedcaffeine.serializer.SerializerException
-
- All Implemented Interfaces:
Serializable
public class SerializerException extends Exception
Checked exception to be thrown if serialization or deserialization fails within aSerializer
instance.- Author:
- Andreas Oberhoff
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializerException(String message)
Constructs a newSerializerException
with the specified detail messageSerializerException(String message, Throwable cause)
Constructs a newSerializerException
with the specified message and cause.SerializerException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Constructs a newSerializerException
with the specified message, cause, suppression enabled or disabled and writable stack trace enabled or disabled.SerializerException(Throwable cause)
Constructs a newSerializerException
with the specified 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
-
SerializerException
public SerializerException(String message)
Constructs a newSerializerException
with the specified detail message- Parameters:
message
- the detail message
-
SerializerException
public SerializerException(Throwable cause)
Constructs a newSerializerException
with the specified cause.- Parameters:
cause
- the cause
-
SerializerException
public SerializerException(String message, Throwable cause)
Constructs a newSerializerException
with the specified message and cause.- Parameters:
message
- the detail messagecause
- the cause
-
SerializerException
public SerializerException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Constructs a newSerializerException
with the specified message, cause, suppression enabled or disabled and writable stack trace enabled or disabled.- Parameters:
message
- the detail messagecause
- the causeenableSuppression
- whether suppression is enabled or disabledwritableStackTrace
- whether the stack trace should be writable
-
-