Refactor core uses of FlutterError. (#30983)

Make FlutterError objects more structured so they can be displayed better in debugging tools such as Dart DevTools.
This commit is contained in:
Jacob Richman
2019-05-01 11:20:12 -07:00
committed by GitHub
parent f8dfa367c6
commit 63aa5b3647
47 changed files with 3103 additions and 951 deletions

View File

@@ -16,7 +16,7 @@ void main() {
handleUncaughtError:(Zone zone, ZoneDelegate delegate, Zone parent, Object error, StackTrace stackTrace) {
FlutterError.reportError(FlutterErrorDetails(
exception: error,
context: 'In the Zone handleUncaughtError handler',
context: ErrorDescription('In the Zone handleUncaughtError handler'),
silent: false,
));
});