Class 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.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SerializationException

        public SerializationException​(java.lang.Throwable cause)
        Creates an instance.
        Parameters:
        cause - the underlying exception