Class SerializationException

  • All Implemented Interfaces:

    public class SerializationException
    extends java.lang.Exception
    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. The underlying exception can be inspected with the Throwable.getCause() method, but application code should not rely on those details since they are subject to change.

    See Also:
    Serialized Form
    • 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.
        cause - the underlying exception
      • SerializationException

        public SerializationException​(java.lang.String message)
        Creates an instance.
        message - a description of the error