Method is called when an error is thrown
@override void onError(Object err, StackTrace? stackTrace) {}