Consumer

class Consumer(val errors: MutableList<String> = arrayListOf()) : ErrorConsumer

Constructors

Link copied to clipboard
fun Consumer(errors: MutableList<String> = arrayListOf())

Functions

Link copied to clipboard
open override fun consumeError(error: String)

Consumes a generic error not related to any property

Link copied to clipboard
open override fun consumePropertyError(property: String, error: String)

Consumes property error

Link copied to clipboard
open override fun nested(description: String, block: () -> Unit)

Runs specified block in a nested validation scope with provided description

Properties

Link copied to clipboard
val errors: MutableList<String>
Link copied to clipboard
var scope: String