BusinessError constructor
BusinessError({
- required String code,
- required String serverMessage,
- String? message,
- String? traceId,
- dynamic rawResponse,
- RequestOptions? requestOptions,
- StackTrace? stackTrace,
- Object? originalError,
- 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);