onThrowException method
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>();
}