Exception: StateFu::RequirementError

Inherits:
TransitionError show all
Includes:
Enumerable
Defined in:
lib/support/exceptions.rb

Instance Attribute Summary

Attributes inherited from TransitionError

#transition

Attributes inherited from Error

#binding, #options

Instance Method Summary collapse

Methods inherited from TransitionError

#initialize

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from StateFu::TransitionError

Instance Method Details

#inspectObject



87
88
89
# File 'lib/support/exceptions.rb', line 87

def inspect
  "<#{self.class.to_s}::#{__id__} :#{transition.origin.to_sym}-[#{transition.event.to_sym}]->:#{transition.target.to_sym} unmet_requirements=#{to_a.inspect}>"
end

#to_aObject



75
76
77
# File 'lib/support/exceptions.rb', line 75

def to_a
  unmet_requirement_messages
end

#to_hObject



79
80
81
# File 'lib/support/exceptions.rb', line 79

def to_h
  requirement_errors
end

#to_sObject



83
84
85
# File 'lib/support/exceptions.rb', line 83

def to_s
  inspect
end