OriginException.of constructor

  1. String message, {
  2. Uri? reference,
  3. OriginFailure failure,
  4. int statusCode,
  5. String? reasonPhrase,

Create an exception of message, failure and statusCode.

Optionally also reference and reasonPhrase can be given.

The default for failure is undefined and for statusCode is 0.


factory OriginException.of(
  String message, {
  Uri? reference,
  OriginFailure failure,
  int statusCode,
  String? reasonPhrase,
}) = _OriginExceptionBase;