exceptionOf<V, E extends Object> function
Constructor wrapper for Exception which reads nicer.
Implementation
Result<V, E> exceptionOf<V, E extends Object>(E exception) => Error(exception);
Constructor wrapper for Exception which reads nicer.
Result<V, E> exceptionOf<V, E extends Object>(E exception) => Error(exception);