Class KnownReason

  • All Implemented Interfaces:
    java.io.Serializable

    public class KnownReason
    extends java.lang.RuntimeException
    An exception that may be used to indicate that an exceptional condition is "expected" in the sense that you will need no further tools to investigate the reason, such as a stack trace.

    Such exceptions may be a timeout or a user initiated cancel.

    In conjunction with ExceptionTools you can search an exception chain for "known reasons".

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      KnownReason()  
      KnownReason​(java.lang.String message)  
      KnownReason​(java.lang.String message, java.lang.Throwable cause)  
      KnownReason​(java.lang.Throwable cause)  
    • 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

      • KnownReason

        public KnownReason()
      • KnownReason

        public KnownReason​(java.lang.String message)
      • KnownReason

        public KnownReason​(java.lang.String message,
                           java.lang.Throwable cause)
      • KnownReason

        public KnownReason​(java.lang.Throwable cause)