module Try::Interface
Defined in:
try.crInstance Method Summary
- #err : Exception
- #err? : Exception | Nil
- #failed : Failure(T)
- #failure? : Bool
- #flat_map(&block : T -> Failure(T) | Success(T)) : Failure(T) | Success(T) forall U
- #foreach(&block : T -> U) : Nil forall U
- #get : T
- #get? : T | Nil
- #map(&block : T -> U) : Failure(T) | Success(T) forall U
- #or(&block : Exception -> U) : Failure(T | U) | Success(T | U) forall U
- #recover(&block : Exception -> T) : Failure(T) | Success(T)
- #success? : Bool