onError method

Future onError(
  1. dynamic error
)

Implementation

Future onError(dynamic error) async {
  for (final interceptors in this) {
    await interceptors.onError?.call(error);
  }
}