Class SerializationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.launchdarkly.sdk.server.subsystems.SerializationException
-
- All Implemented Interfaces:
java.io.Serializable
public class SerializationException extends java.lang.RuntimeException
General exception class for all errors in serializing or deserializing JSON.The SDK uses this class to avoid depending on exception types from the underlying JSON framework that it uses (currently Gson).
This is currently an unchecked exception, because adding checked exceptions to existing SDK interfaces would be a breaking change. In the future it will become a checked exception, to make error-handling requirements clearer. However, public SDK client methods will not throw this exception in any case; it is only relevant when implementing custom components.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializationException(java.lang.Throwable cause)
Creates an instance.
-