Err<T, E extends BaseException> constructor

const Err<T, E extends BaseException>(
  1. E error
)

Creates a failed result containing error.

Implementation

const Err(this.error);