Skip to content

Commit

Permalink
docs(core_concepts): adjust error handling outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Dec 10, 2023
1 parent efb1c44 commit 3f0ccb8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 50 deletions.
88 changes: 45 additions & 43 deletions docs/_snippets/core_concepts/counter_bloc_on_error_output.sh.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,52 @@
```sh
Exception: increment error!, #0 new CounterBloc.<anonymous closure> (file:///main.dart:117:58)
#1 Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:427:26)
#2 Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:418:25)
#3 Bloc.on.<anonymous closure> (package:bloc/src/bloc.dart:435:9)
#4 _MapStream._handleData (dart:async/stream_pipe.dart:213:31)
#5 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#6 _RootZone.runUnaryGuarded (dart:async/zone.dart:1620:10)
#7 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#8 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#9 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
#10 _WhereStream._handleData (dart:async/stream_pipe.dart:195:12)
#11 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#12 _RootZone.runUnaryGuarded (dart:async/zone.dart:1620:10)
#13 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#14 _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#15 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
#16 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
#17 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#18 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#19 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:120:13)
#20 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:185:5)
Exception: increment error!, #0 new CounterBloc.<anonymous closure> (file:///main.dart:10:58)
#1 Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:229:26)
#2 Bloc.on.<anonymous closure> (package:bloc/src/bloc.dart:238:9)
#3 _MapStream._handleData (dart:async/stream_pipe.dart:213:31)
#4 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#5 _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#6 CastStreamSubscription._onData (dart:_internal/async_cast.dart:85:11)
#7 _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#10 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
#11 _WhereStream._handleData (dart:async/stream_pipe.dart:195:12)
#12 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#13 _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#14 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#15 _DelayedData.perform (dart:async/stream_impl.dart:515:14)
#16 _PendingEvents.handleNext (dart:async/stream_impl.dart:620:11)
#17 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:591:7)
#18 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#19 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#20 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#21 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:185:5)

CounterBloc Exception: increment error!, #0 new CounterBloc.<anonymous closure> (file:///main.dart:117:58)
#1 Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:427:26)
#2 Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:418:25)
#3 Bloc.on.<anonymous closure> (package:bloc/src/bloc.dart:435:9)
#4 _MapStream._handleData (dart:async/stream_pipe.dart:213:31)
#5 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#6 _RootZone.runUnaryGuarded (dart:async/zone.dart:1620:10)
#7 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#8 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#9 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
#10 _WhereStream._handleData (dart:async/stream_pipe.dart:195:12)
#11 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#12 _RootZone.runUnaryGuarded (dart:async/zone.dart:1620:10)
#13 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
#14 _DelayedData.perform (dart:async/stream_impl.dart:591:14)
#15 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
#16 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
#17 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#18 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#19 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:120:13)
#20 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:185:5)
CounterBloc Exception: increment error! #0 new CounterBloc.<anonymous closure> (file:///main.dart:10:58)
#1 Bloc.on.<anonymous closure>.handleEvent (package:bloc/src/bloc.dart:229:26)
#2 Bloc.on.<anonymous closure> (package:bloc/src/bloc.dart:238:9)
#3 _MapStream._handleData (dart:async/stream_pipe.dart:213:31)
#4 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#5 _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#6 CastStreamSubscription._onData (dart:_internal/async_cast.dart:85:11)
#7 _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#10 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
#11 _WhereStream._handleData (dart:async/stream_pipe.dart:195:12)
#12 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
#13 _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#14 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#15 _DelayedData.perform (dart:async/stream_impl.dart:515:14)
#16 _PendingEvents.handleNext (dart:async/stream_impl.dart:620:11)
#17 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:591:7)
#18 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#19 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#20 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#21 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:185:5)

Transition { currentState: 0, event: Instance of 'CounterIncrementPressed', nextState: 1 }
CounterBloc Transition { currentState: 0, event: Instance of 'CounterIncrementPressed', nextState: 1 }
Change { currentState: 0, nextState: 1 }
CounterBloc Change { currentState: 0, nextState: 1 }
Change { currentState: 0, nextState: 1 }
```
14 changes: 7 additions & 7 deletions docs/_snippets/core_concepts/counter_cubit_on_error_output.sh.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
```sh
Exception: increment error!, #0 CounterCubit.increment (file:///main.dart:21:56)
Exception: increment error!, #0 CounterCubit.increment (file:///main.dart:7:56)
#1 main (file:///main.dart:41:7)
#2 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
#3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
#2 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:297:19)
#3 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

CounterCubit Exception: increment error! #0 CounterCubit.increment (file:///main.dart:21:56)
CounterCubit Exception: increment error! #0 CounterCubit.increment (file:///main.dart:7:56)
#1 main (file:///main.dart:41:7)
#2 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
#3 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
#2 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:297:19)
#3 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

Change { currentState: 0, nextState: 1 }
CounterCubit Change { currentState: 0, nextState: 1 }
Change { currentState: 0, nextState: 1 }
```

0 comments on commit 3f0ccb8

Please sign in to comment.