Result<DATA, ERROR extends Exception> constructor

Result<DATA, ERROR extends Exception>(
  1. DATA? data,
  2. ERROR? error
)

Implementation

Result(this.data, this.error);