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.



5
6
7
8
# File 'lib/deltacloud/validation.rb', line 5

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

Instance Attribute Details

#paramObject (readonly)

Returns the value of attribute param.



4
5
6
# File 'lib/deltacloud/validation.rb', line 4

def param
  @param
end

Instance Method Details

#nameObject



10
11
12
# File 'lib/deltacloud/validation.rb', line 10

def name
  param.name
end