Class ThrowableNotThrownAssertionError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError
- All Implemented Interfaces:
Serializable
Thrown if a method has not thrown an throwable of the expected type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThrowableNotThrownAssertionError
(Class<E> clazz) Use this constructor if neither an throwable of the expected type nor another throwable is thrown.ThrowableNotThrownAssertionError
(Class<E> clazz, Throwable e) Use this constructor if an throwable of another than the expected type is thrown. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ThrowableNotThrownAssertionError
Use this constructor if neither an throwable of the expected type nor another throwable is thrown.- Type Parameters:
E
- the type of the throwable that is not thrown.- Parameters:
clazz
- the type of the throwable that is not thrown.
-
ThrowableNotThrownAssertionError
Use this constructor if an throwable of another than the expected type is thrown.- Type Parameters:
E
- the type of the throwable that is not thrown.- Parameters:
clazz
- the type of the throwable that is not thrown.e
- the throwable that has been thrown instead of the expected one.
-