Exception: Rworkflow::StateError
- Inherits:
-
StandardError
- Object
- StandardError
- Rworkflow::StateError
- Defined in:
- lib/rworkflow/state_error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ StateError
constructor
A new instance of StateError.
- #message ⇒ Object
Constructor Details
#initialize(name) ⇒ StateError
Returns a new instance of StateError.
5 6 7 |
# File 'lib/rworkflow/state_error.rb', line 5 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/rworkflow/state_error.rb', line 3 def name @name end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/rworkflow/state_error.rb', line 9 def return "#{@name} state does not exist" end |