Exception: Motion::ComponentError

Inherits:
Error
  • Object
show all
Defined in:
lib/motion/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component, message = nil) ⇒ ComponentError

Returns a new instance of ComponentError.



11
12
13
14
15
# File 'lib/motion/errors.rb', line 11

def initialize(component, message = nil)
  super(message)

  @component = component
end

Instance Attribute Details

#componentObject (readonly)

Returns the value of attribute component.



9
10
11
# File 'lib/motion/errors.rb', line 9

def component
  @component
end