Exception: Deltacloud::Validation::Failure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/deltacloud/validation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param, msg = '') ⇒ Failure

Returns a new instance of Failure.



23
24
25
26
# File 'lib/deltacloud/validation.rb', line 23

def initialize(param, msg='')
  super(msg)
  @param = param
end

Instance Attribute Details

#paramObject (readonly)

Returns the value of attribute param.



22
23
24
# File 'lib/deltacloud/validation.rb', line 22

def param
  @param
end

Instance Method Details

#nameObject



28
29
30
# File 'lib/deltacloud/validation.rb', line 28

def name
  param.name
end