reportExceptionNoticed method

  1. @protected
void reportExceptionNoticed(
  1. FlutterErrorDetails exception
)

Called when the framework catches an exception, even if that exception is being handled by takeException.

This is called when there is no pending exception; if multiple exceptions are thrown and takeException isn't used, then subsequent exceptions are logged to the console regardless (and the test will fail).

Implementation

@protected
void reportExceptionNoticed(FlutterErrorDetails exception) {
  // By default we do nothing.
  // The LiveTestWidgetsFlutterBinding overrides this to report the exception to the console.
}