Result<'T, 'TError> (FSharp.Core)

Namespace: FSharp.Core
Assembly: FSharp.Core.dll
Base Type: ValueType
All Interfaces: IStructuralEquatable , IComparable<Result<'T, 'TError>> , IComparable , IStructuralComparable
Kind: Struct

Helper type for error handling without exceptions.

Union cases

Union case Description

Error ErrorValue

Full Usage: Error ErrorValue

Parameters:

    ErrorValue : 'TError

Represents an Error or a Failure. The code failed with a value of 'TError representing what went wrong.

ErrorValue : 'TError

Ok ResultValue

Full Usage: Ok ResultValue

Parameters:

    ResultValue : 'T

Represents an OK or a Successful result. The code succeeded with a value of 'T.

ResultValue : 'T