Consumer

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard

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 errorsReported(): Boolean
Link copied to clipboard
open override fun nested(description: String, block: () -> Unit)

Runs specified block in a nested validation scope with provided description