Throws

class Throws(val throwable: Throwable) : Answer<Nothing>

Throws throwable on call and callSuspend

Constructors

Link copied to clipboard
constructor(throwable: Throwable)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun call(scope: FunctionScope): Nothing

Provides a return value for a function call with given scope.

Link copied to clipboard
open suspend fun callSuspend(scope: FunctionScope): Nothing

Just like call but suspends. By default, it calls call.

Link copied to clipboard
open override fun description(): String

Returns human-readable answer description. By default, it returns answers $this. It's used for debugging purposes.