Err<T extends Object> constructor

Err<T extends Object>(
  1. Object value, {
  2. int? statusCode,
})

Creates a new Err from value and an optional statusCode.

Implementation

Err(super.value, {int? statusCode})
  : statusCode = Option.from(statusCode),
    stackTrace = Trace.current(),
    super._();