ValidationResult

interface ValidationResult<out T>

The result of a validation. Can be a successful outcome with the validated value, or a failure with a violation list.

Inheritors

Types

Link copied to clipboard

A failed outcome to the validation, which can be thrown.

Link copied to clipboard

A failed outcome to the validation, with a violation list describing what went wrong.

Link copied to clipboard

A successful outcome to the validation, with the validated value.

Functions

Link copied to clipboard
abstract fun orThrow()

Throws an Exception if the result is a failure.