dshould.thrown

Undocumented in source.

Members

Aliases

throwAn
alias throwAn = throwA

The phrase .should.throwA!Type (or .throwAn!Exception, depending on grammar) expects the left-hand side expression to throw an exception of the given type. The exception is caught. If no exception was thrown, .throwA itself throws a FluentException to complain. If the left-hand side threw an exception, the word .where may be used to inspect this exception further. The meaning of .throwA may be negated with .not, in which case nothing is returned.

Templates

throwA
template throwA(T : Throwable)

The phrase .should.throwA!Type (or .throwAn!Exception, depending on grammar) expects the left-hand side expression to throw an exception of the given type. The exception is caught. If no exception was thrown, .throwA itself throws a FluentException to complain. If the left-hand side threw an exception, the word .where may be used to inspect this exception further. The meaning of .throwA may be negated with .not, in which case nothing is returned.

Meta