Class: Relaxo::Model::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/relaxo/model/component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, exception) ⇒ Error

Returns a new instance of Error.



26
27
28
29
# File 'lib/relaxo/model/component.rb', line 26

def initialize(key, exception)
	@key = key
	@exception = exception
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



32
33
34
# File 'lib/relaxo/model/component.rb', line 32

def exception
  @exception
end

#keyObject (readonly)

Returns the value of attribute key.



31
32
33
# File 'lib/relaxo/model/component.rb', line 31

def key
  @key
end