Exception: UltraConfig::Validation::ValidationError

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

Direct Known Subclasses

TypeValidationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, config = [], value = nil) ⇒ ValidationError

Returns a new instance of ValidationError.



11
12
13
14
15
16
# File 'lib/ultra_config/validation.rb', line 11

def initialize(msg = nil, config = [], value = nil)
  @value = value
  @config = config.join('.')

  super(msg)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



8
9
10
# File 'lib/ultra_config/validation.rb', line 8

def config
  @config
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/ultra_config/validation.rb', line 9

def value
  @value
end