• This project
    • Loading...
  • Sign in

flutter_package / auto_track_plugin

Go to a project
Toggle navigation
  • Projects
  • Groups
  • Snippets
  • Help
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • auto_track_plugin
  • lib
  • auto_track
  • utils
  • error_model.dart
  • feat: 添加错误上报功能并引入错误模型类 · 09a8daa9
    09a8daa9 Browse Files
    Dubhe authored 2024-06-13 13:45:51 +0800
error_model.dart 294 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
class ErrorModel {
  final Object error;
  final StackTrace stack;

  ErrorModel({required this.error, required this.stack});

  Map<String, dynamic> toMap() {
    return {
      'error': error.toString(),
      'stack': stack.toString(),
      'key': error.runtimeType.toString()
    };
  }
}