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
Functions
Link copied to clipboard
fun addError(builder: UnaryOperator<ValidationResult.ErrorEntry.Builder<String>>): ValidationResult.ErrorEntry.Mutable
fun addError(type: ValidationResult.ErrorEntry.Type<String>, error: String, e: Throwable? = null): ValidationResult.ErrorEntry.Mutable
Builds and adds a string-based child entry to this mutable
Adds a child error to this mutable
Adds the entries from another mutable to this one
fun <C : Any> addError(type: ValidationResult.ErrorEntry.Type<C>, builder: UnaryOperator<ValidationResult.ErrorEntry.Builder<C>>): ValidationResult.ErrorEntry.Mutable
Builds and adds a child entry to this mutable of the given type