Package rx.exceptions

Class AssemblyStackTraceException

  • All Implemented Interfaces:
    java.io.Serializable

    @Experimental
    public final class AssemblyStackTraceException
    extends java.lang.RuntimeException
    A RuntimeException that is stackless but holds onto a textual stacktrace from tracking the assembly location of operators.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      AssemblyStackTraceException​(java.lang.String message)
      Constructs an AssemblyStackTraceException with the given message.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void attachTo​(java.lang.Throwable exception)
      Finds an empty cause slot and assigns itself to it.
      java.lang.Throwable fillInStackTrace()  
      static AssemblyStackTraceException find​(java.lang.Throwable e)
      Locate the first AssemblyStackTraceException in the causal chain of the given Throwable (or it if it's one).
      • Methods inherited from class java.lang.Throwable

        addSuppressed, 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

      • AssemblyStackTraceException

        public AssemblyStackTraceException​(java.lang.String message)
        Constructs an AssemblyStackTraceException with the given message.
        Parameters:
        message - the message
    • Method Detail

      • fillInStackTrace

        public java.lang.Throwable fillInStackTrace()
        Overrides:
        fillInStackTrace in class java.lang.Throwable
      • attachTo

        public void attachTo​(java.lang.Throwable exception)
        Finds an empty cause slot and assigns itself to it.
        Parameters:
        exception - the exception to start from
      • find

        public static AssemblyStackTraceException find​(java.lang.Throwable e)
        Locate the first AssemblyStackTraceException in the causal chain of the given Throwable (or it if it's one).
        Parameters:
        e - the input throwable
        Returns:
        the AssemblyStackTraceException located or null if not found