Class SerializableThrowable

  • All Implemented Interfaces:
    java.io.Serializable

    public final class SerializableThrowable
    extends java.lang.Object
    implements java.io.Serializable
    A wrapper around Throwable that preserves the stack trace on serialization, unlike regular Throwable.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SerializableThrowable​(@Nullable java.lang.Throwable t)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(@Nullable java.lang.Object o)  
      @Nullable java.lang.Throwable getThrowable()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SerializableThrowable

        public SerializableThrowable​(@Nullable java.lang.Throwable t)
    • Method Detail

      • getThrowable

        public @Nullable java.lang.Throwable getThrowable()
      • equals

        public boolean equals​(@Nullable java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object