Files
hjsq_android/lib/tools_base/net/api_exception.dart
T
谢宇宁andClaude Opus 5.5 2d26ea8f90 Initial commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 10:38:11 +07:00

13 lines
313 B
Dart

/// future 扔出的异常
class ApiException implements Exception {
int? code = -200;
dynamic message;
ApiException([this.code = -200, this.message]);
@override
String toString() {
if (message == null) return "ApiException:code:$code";
return "ApiException:code:$code message:$message";
}
}