exceptionOf<V, E extends Object> function

Result<V, E> exceptionOf<V, E extends Object>(
  1. E exception
)

Constructor wrapper for Exception which reads nicer.

Implementation

Result<V, E> exceptionOf<V, E extends Object>(E exception) => Error(exception);