BlocUnhandledErrorException constructor

BlocUnhandledErrorException(
  1. BlocBase bloc,
  2. Object error, [
  3. StackTrace stackTrace = StackTrace.empty
])

Exception thrown when an unhandled error occurs within a bloc.

Note: thrown in debug mode only

Implementation

BlocUnhandledErrorException(
  this.bloc,
  this.error, [
  this.stackTrace = StackTrace.empty,
]);