Exception: UltraConfig::Validation::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- UltraConfig::Validation::ValidationError
- Defined in:
- lib/ultra_config/validation.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(msg = nil, config = [], value = nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
8 9 10 |
# File 'lib/ultra_config/validation.rb', line 8 def config @config end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
9 10 11 |
# File 'lib/ultra_config/validation.rb', line 9 def value @value end |