error

abstract var error: Any?(source)

If the mocked function threw then this property contains the thrown value.