Class SerializedThrowable

  • All Implemented Interfaces:
    Serializable

    public class SerializedThrowable
    extends Exception
    implements Serializable
    Utility class for dealing with user-defined Throwable types that are serialized (for example during RPC/Actor communication), but cannot be resolved with the default class loader.

    This exception mimics the original exception with respect to message and stack trace, and contains the original exception in serialized form. The original exception can be re-obtained by supplying the appropriate class loader.

    See Also:
    Serialized Form
    • Constructor Detail

      • SerializedThrowable

        public SerializedThrowable​(Throwable exception)
        Create a new SerializedThrowable.
        Parameters:
        exception - The exception to serialize.