Package dev.kylesilver.result


package dev.kylesilver.result
  • Class
    Description
    Similar to the Supplier interface, but with additional type information to allow for the function to throw an exception.
    Err<T,E>
    Indicates that an operation has failed.
    This exception is thrown when the Result.tryOr function is unable to cast a caught exception from the caller-provided CheckedSupplier into the desired error type.
    Ok<T,E>
    Indicates that an operation has been completed successfully.
    Result<T,E>
    A result type represents the output of an operation with two possible outcomes.
    This exception is thrown when a value is unwrapped.