Package org.testng

Class TestNGException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    MethodMatcherException, TestException

    public class TestNGException
    extends java.lang.RuntimeException
    The base class for all exceptions thrown by TestNG.
    See Also:
    Serialized Form
    • 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

      • TestNGException

        public TestNGException​(java.lang.Throwable t)
      • TestNGException

        public TestNGException​(java.lang.String string)
        Parameters:
        string -
      • TestNGException

        public TestNGException​(java.lang.String string,
                               java.lang.Throwable t)