Initializer
ExceptionAssert(Throwable exception)
Parameters:
  • exception

    The exception to be checked.

Inherited Attributes
Attributes inherited from: Object
Methods
hasMessageSource Codeshared ExceptionAssert hasMessage(String|Boolean(String) messageCondition)

Verifies that the actual exception has expected message.

Parameters:
  • messageCondition

    The expected message or message predicate.

Throws
hasNoCauseSource Codeshared ExceptionAssert hasNoCause()

Verifies that the actual exception does not have a cause.

Throws
hasTypeSource Codeshared ExceptionAssert hasType(Class<Throwable,Nothing>|Boolean(ClassModel<Throwable,Nothing>) typeCondition)

Verifies that the actual exception has expected type.

Parameters:
  • typeCondition

    The expected type or type predicate.

Throws
Inherited Methods
Methods inherited from: Object