onThrowException method

  1. @override
Stream<throwException> onThrowException({
  1. required int id,
  2. String? message,
  3. int? errorCode,
})
override

The method will be executed if an exception occurs message error message errorCode the error id

Implementation

@override
Stream<throwException> onThrowException(
    {required int id, String? message, int? errorCode}) {
  return _events(id).whereType<throwException>();
}