Class FunctionTagging.FunctionTaggingException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    FunctionTagging

    public static final class FunctionTagging.FunctionTaggingException
    extends java.lang.RuntimeException
    The stackless tagging exception appended to the chain of causes of the original exception thrown by the wrapped function.

    This exception doesn't store the actual stacktrace as it only clutters the original stacktrace when printed.

    See Also:
    Serialized Form
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable appendLast​(java.lang.Throwable ex)
      Try appending this FunctionTaggingException as the very last cause of the given throwable.
      java.lang.Throwable fillInStackTrace()  
      • 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

      • FunctionTaggingException

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

      • fillInStackTrace

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

        public java.lang.Throwable appendLast​(java.lang.Throwable ex)
        Try appending this FunctionTaggingException as the very last cause of the given throwable.
        Parameters:
        ex - the Throwable to append to
        Returns:
        ex the original Throwable