Permalink
Browse files

updated readme to show that custom error handler can access the origi…

…nal exception (issue #62)
  • Loading branch information...
1 parent d403758 commit 4d422c0880713ef662b256827f77eb9906eecfc4 @jakesgordon committed Nov 20, 2016
Showing with 2 additions and 1 deletion.
  1. +1 −1 README.md
  2. +1 −0 RELEASE_NOTES.md
View
@@ -334,7 +334,7 @@ define a custom `error` handler:
var fsm = StateMachine.create({
initial: 'green',
- error: function(eventName, from, to, args, errorCode, errorMessage) {
+ error: function(eventName, from, to, args, errorCode, errorMessage, originalException) {
return 'event ' + eventName + ' was naughty :- ' + errorMessage;
},
events: [
View
@@ -24,6 +24,7 @@ Version 2.4.0 (ETA - December 2016)
* ensure WILDCARD events are included in list of available transitions() (issue #93)
* fix FSM getting stuck into "*" state when using double wildcard (issue #64)
* function (fsm.states) returning list of all available states in the machine would help automated testing (issue #54)
+ * state machine hides callback exceptions (issue #62)
Version 2.3.5 (January 20 2014)
-------------------------------

0 comments on commit 4d422c0

Please sign in to comment.