com.googlecode.catchexception.throwable
Class ThrowableNotThrownAssertionError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError
- All Implemented Interfaces:
- Serializable
public class ThrowableNotThrownAssertionError
- extends AssertionError
Thrown if a method has not thrown an throwable of the expected type.
- Since:
- 16.09.2011
- Author:
- rwoo
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
serialVersionUID
private static final long serialVersionUID
- See
Serializable.
- See Also:
- Constant Field Values
ThrowableNotThrownAssertionError
public ThrowableNotThrownAssertionError(Class<E> clazz)
- 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
public ThrowableNotThrownAssertionError(Class<E> clazz,
Throwable e)
- 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.
Copyright © 2015. All rights reserved.