Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SuccessImpl<T>

Type parameters

  • T

Hierarchy

Implements

Index

Constructors

constructor

Accessors

success

  • get success(): boolean

Methods

catch

  • catch(backup: TypedFunction<Error, T | ITry<T>>): ITry<T>

convert

  • convert<S>(operation: TypedFunction<T, S>, backup?: TypedFunction<Error, S>): ITry<S>

flatConvert

  • flatConvert<S>(operation: TypedFunction<T, ITry<S>>, backup?: TypedFunction<Error, ITry<S>>): ITry<S>

ifAbsent

  • ifAbsent(consumer: Consumer<Error>): this

ifPresent

  • ifPresent(success: Consumer<T>, failure?: Consumer<Error>): this

include

  • include(predicate: Predicate<T>): ITry<T>

iterate

  • iterate(): Iterable<T | Error>

orElse

  • orElse(backup: T): T

orFlatTry

  • orFlatTry(backup: TypedFunction<Error, ITry<T>>): ITry<T>

orThrow

  • orThrow(): T

orTry

  • orTry(backup: TypedFunction<Error, T>): ITry<T>

stream

then

  • then<S>(success: TypedFunction<T, S | ITry<S>>, failure?: TypedFunction<Error, S | ITry<S>>): ITry<S>

toJSON

  • toJSON(): object

toString

  • toString(): string

unwrap

  • unwrap(): T | Error

Generated using TypeDoc