Exception: EventState::SendProtocolError

Inherits:
ProtocolError
  • Object
show all
Defined in:
lib/event_state.rb

Overview

Error raised by Machine when a message that is invalid according to the machine’s protocol is sent.

Instance Attribute Summary

Attributes inherited from ProtocolError

#action, #data, #machine, #message_name, #state_name

Instance Method Summary collapse

Methods inherited from ProtocolError

#inspect

Constructor Details

#initialize(machine, state_name, message_name, data) ⇒ SendProtocolError

Returns a new instance of SendProtocolError.



64
65
66
# File 'lib/event_state.rb', line 64

def initialize machine, state_name, message_name, data
  super machine, state_name, :send, message_name, data
end