handleInternalError method

  1. @override
  2. @protected
void handleInternalError(
  1. dynamic error,
  2. StackTrace stackTrace
)
override

Handles internal errors that occur within the bloc.

Takes an error argument representing the error that occurred. Logs the error to the console.

Implementation

@override
@protected
void handleInternalError(dynamic error, StackTrace stackTrace) {
  debugLog(
    'Internal Bloc error occured',
    value: error,
    debugLabel: debugLabel,
  );

  debugLog(
    'Stacktrace',
    value: stackTrace,
    debugLabel: debugLabel,
  );
}