Class ConstantThrowable

  • All Implemented Interfaces:

    public class ConstantThrowable
    extends java.lang.Throwable
    A Throwable that may be used in static contexts. It uses Java 7 constructor that prevents setting stackTrace inside exception object.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConstantThrowable

        public ConstantThrowable()
      • ConstantThrowable

        public ConstantThrowable​(java.lang.String name)
    • Method Detail

      • toString

        public java.lang.String toString()
        toString in class java.lang.Throwable