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.
See Also:
  • Constructor Details

    • 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.