addThrownException

open fun addThrownException(throwType: ReferenceType): N(source)

Adds this type to the throws clause

Return

this

Parameters

throwType

the exception type


open fun addThrownException(clazz: Class<out Throwable>): N(source)

Adds this class to the throws clause

Return

this

Parameters

clazz

the exception class