Show / Hide Table of Contents

    Class ErrorExtensions

    Extensions for Error.
    Inheritance
    System.Object
    ErrorExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Maki
    Assembly: Maki.dll
    Syntax
    public static class ErrorExtensions

    Methods

    | Improve this Doc View Source

    Bind<T, U>(Error<T>, Func<T, Error<U>>)

    Binds the given function to the Error.
    Declaration
    public static Error<U> Bind<T, U>(this Error<T> error, Func<T, Error<U>> func)
    Parameters
    Type Name Description
    Error<T> error This instance.
    System.Func<T, Error<U>> func Function to bind.
    Returns
    Type Description
    Error<U> Error containing the result of the function or an exception.
    Type Parameters
    Name Description
    T Error type.
    U Function return Error type.
    | Improve this Doc View Source

    Map<T, U>(Error<T>, Func<T, U>)

    Maps the given function to the Error.
    Declaration
    public static Error<U> Map<T, U>(this Error<T> error, Func<T, U> func)
    Parameters
    Type Name Description
    Error<T> error This instance.
    System.Func<T, U> func Function to map.
    Returns
    Type Description
    Error<U> Error containing the result of the function or an exception.
    Type Parameters
    Name Description
    T Error type.
    U Function return type
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX