jakesgordon / javascript-state-machine

A javascript finite state machine library
MIT License
8.69k stars 964 forks source link

Re-instate config.error from version 2 #160

Open scotthulluk opened 6 years ago

scotthulluk commented 6 years ago

Version 2 had a config.error setting that would catch any error within transition/state change processes.

It would provide the following params "transition, from, to, args, errorCode, errorMessage, stackTrace", be nice to have that re-instated for version 3.

Currently version 3 only allows onInvalidTransition which isn't all that much use to me.