Exception: StateFu::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/support/exceptions.rb

Direct Known Subclasses

TransitionError, TransitionNotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(binding, message = nil, options = {}) ⇒ Error

Returns a new instance of Error.



9
10
11
12
13
# File 'lib/support/exceptions.rb', line 9

def initialize binding, message=nil, options={}
  @binding = binding
  @options = options
  super message
end

Instance Attribute Details

#bindingObject (readonly)

Returns the value of attribute binding.



7
8
9
# File 'lib/support/exceptions.rb', line 7

def binding
  @binding
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/support/exceptions.rb', line 7

def options
  @options
end