Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 317 Bytes

File metadata and controls

22 lines (13 loc) · 317 Bytes

Validation.error

Namespace: FsToolkit.ErrorHandling

Lift an 'error value into an Validation<'ok, 'error>

Function Signature:

'error -> Validation<'ok, 'error>

Examples

Example 1

let result : Validation<int, string> =
  Validation.error "Something bad happened"