throws

abstract infix fun throws(error: Throwable)

Alias setter of error.

Parameters

error

which is thrown when the Proxy is invoked.


abstract var throws: Throwable

Deprecated

This property will be replaced with 0.3.0 by error.

Replace with

error

Setter/Getter in order to set/get a constant error which is thrown on the invocation of the Proxy.

Throws

NullPointerException

on get if no value was set.