Created
June 25, 2014 10:48
-
-
Save odeheurles/a0f838e4b83e53f88379 to your computer and use it in GitHub Desktop.
Error handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_stateMachine.OnUnhandledTrigger(OnUnhandledTrigger); | |
private void OnUnhandledTrigger(RfqState state, RfqEvent trigger) | |
{ | |
var message = string.Format("State machine received an invalid trigger '{0}' in state '{1}'", trigger, state); | |
Console.WriteLine(message); | |
_rfqUpdateSubject.OnError(new ApplicationException(message)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment