Mutable

A mutable wrapper of an error entry. This is typically used to provide an "entrypoint" for building errors based on a pre-defined header message. Use it with other validation results by calling ValidationResult.attachTo, and then build your final compound result with ValidationResult.ofMutable

Build the error directly by calling one of the various addError methods

Author

fzzyhmstrs

Since

0.7.0

Parameters

entry

ErrorEntry the wrapped error entry instance

See also

Constructors

Link copied to clipboard
constructor(entry: ValidationResult.ErrorEntry)

Functions

Link copied to clipboard
Link copied to clipboard
fun <T> report(value: T, type: ValidationResult.ErrorEntry.Type<String>, error: String, e: Throwable? = null): T

Pass-through method that attaches a string-based error to this mutable and then provides the value back that prompted the error