Exception: Rworkflow::StateError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rworkflow/state_error.rb

Direct Known Subclasses

TransitionError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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

#messageObject



9
10
11
# File 'lib/rworkflow/state_error.rb', line 9

def message
  return "#{@name} state does not exist"
end