Package dev.aherscu.qa.jgiven.commons
Class TestRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- dev.aherscu.qa.jgiven.commons.TestRuntimeException
-
- All Implemented Interfaces:
Serializable
public class TestRuntimeException extends RuntimeException
A test runtime exception from which recovery is not possible.- Author:
- aherscu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TestRuntimeException()
Constructs a test run-time exception without cause.TestRuntimeException(String message)
Constructs a test run-time exception with a message.TestRuntimeException(Throwable cause)
Constructs a test run-time exception with a cause.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isRecoverableException(Throwable t)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TestRuntimeException
public TestRuntimeException()
Constructs a test run-time exception without cause.
-
TestRuntimeException
public TestRuntimeException(String message)
Constructs a test run-time exception with a message.- Parameters:
message
- the message of this exception
-
TestRuntimeException
public TestRuntimeException(Throwable cause)
Constructs a test run-time exception with a cause.- Parameters:
cause
- the cause of this exception
-
-
Method Detail
-
isRecoverableException
public static boolean isRecoverableException(Throwable t)
- Parameters:
t
- a throwable to check- Returns:
- true if specified exception is due to some temporary condition, for example element not rendered yet or value does not match expectation yet.
-
-