NetworkAppException constructor

const NetworkAppException({
  1. required String message,
  2. DioException? originalException,
  3. String? errorCode,
  4. String? traceId,
})

Creates a network exception with the given message.

The optional originalException preserves the underlying Dio error for detailed debugging and error-specific handling. errorCode and traceId are populated from the backend's ErrorResponse envelope when available.

Implementation

const NetworkAppException({required super.message, this.originalException, this.errorCode, this.traceId});