nv_tooling/result library

Classes

Error<V, E extends Object>
Error case.
Nothing
Void object for value cases that should return void.
Result<S, E extends Object>
Base class declaring the interface.
Value<V, E extends Object>
Value case.

Constants

nothing → const Nothing
Cleaner way to return a Nothing object.

Functions

exceptionOf<V, E extends Object>(E exception) Result<V, E>
Constructor wrapper for Exception which reads nicer.
resultOf<V, E extends Object>(V value) Result<V, E>
Constructor wrapper for Value which reads nicer.

Typedefs

AsyncResult<V, E extends Object> = Future<Result<V, E>>