Call.throws

When the method which matches this expectation is called, throw the given exception. If there are any actions specified (via the action method), they will not be executed.

  1. typeof(this) throws(Exception exception)
    mixintemplate Call(alias F)
    ref
    typeof(this)
    throws
    (
    Exception exception
    )
  2. typeof(this) throws(string msg, string file, size_t line)

Parameters

exception Exception

The exception to throw.

Return Value

Type: typeof(this)

$(D_KEYWORD this).

Meta