BusinessError constructor

BusinessError({
  1. required String code,
  2. required String serverMessage,
  3. String? message,
  4. String? traceId,
  5. dynamic rawResponse,
  6. RequestOptions? requestOptions,
  7. StackTrace? stackTrace,
  8. Object? originalError,
  9. DateTime? timestamp,
})

Implementation

BusinessError({
  required this.code,
  required this.serverMessage,

  /// 可选:覆盖 SmartError.message(默认等于 serverMessage)
  String? message,
  this.traceId,
  this.rawResponse,
  super.requestOptions,
  super.stackTrace,
  super.originalError,
  super.timestamp,
}) : super(message: message ?? serverMessage);