Header menu logo FSharp.Core

Result<'T, 'TError> Type

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

Instance members

Instance member Description

this.IsError

Full Usage: this.IsError

Returns: bool
Returns: bool

this.IsOk

Full Usage: this.IsOk

Returns: bool
Returns: bool

Type something to start searching.