Skip to content

ValidationFailure

[Source]

Collection of validation errors.

class val ValidationFailure

Constructors

create

[Source]

new ref create(
  e: (String val | None val) = reference)
: ValidationFailure ref^

Parameters

Returns


Public Functions

apply

[Source]

Add an error to the failure.

fun ref apply(
  e: String val)
: None val

Parameters

Returns


errors

[Source]

Get list of validation errors.

fun box errors()
: this->Array[String val] ref

Returns