class OptionCallTransformContext : Option
A receiver for options transformers.
OptionCallTransformContext(name: String, option: Option, context: Context)
A receiver for options transformers. |
val context: Context |
|
val name: String
The name that was used to invoke this option. |
|
val option: Option
The option that was invoked |
fun fail(message: String): Nothing
Throw an exception indicating that an invalid value was provided. |
|
fun require(value: Boolean, lazyMessage: () -> String = { "invalid value" }): Unit
If value is false, call fail with the output of lazyMessage |