Error<T, E> constructor

const Error<T, E>(
  1. E error
)

Constructs an error result

Implementation

const Error(this.error);