Exception: StateFu::TransitionError
- Defined in:
- lib/support/exceptions.rb
Direct Known Subclasses
IllegalTransition, RequirementError, TransitionAlreadyFired, TransitionHalted, UnknownTarget
Instance Attribute Summary collapse
-
#transition ⇒ Object
readonly
TODO default message.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(transition, message = nil, options = {}) ⇒ TransitionError
constructor
A new instance of TransitionError.
- #inspect ⇒ Object
Constructor Details
#initialize(transition, message = nil, options = {}) ⇒ TransitionError
Returns a new instance of TransitionError.
38 39 40 41 42 |
# File 'lib/support/exceptions.rb', line 38 def initialize transition, =nil, ={} # raise caller.inspect unless transition.is_a?(Transition) @transition = transition super transition.binding, , end |
Instance Attribute Details
#transition ⇒ Object (readonly)
TODO default message
36 37 38 |
# File 'lib/support/exceptions.rb', line 36 def transition @transition end |
Instance Method Details
#inspect ⇒ Object
54 55 56 57 58 59 |
# File 'lib/support/exceptions.rb', line 54 def inspect origin_name = origin && origin.name target_name = target && target.name event_name = event && event.name "<#{self.class.to_s} #{} #{origin_name.inspect}=[#{event_name.inspect}]=>#{target_name.inspect}>" end |