Exception: Classy::Yaml::InvalidKeyError
- Inherits:
-
StandardError
- Object
- StandardError
- Classy::Yaml::InvalidKeyError
- Defined in:
- lib/classy/yaml/invalid_key_error.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ InvalidKeyError
constructor
A new instance of InvalidKeyError.
- #message ⇒ Object
Constructor Details
#initialize(data) ⇒ InvalidKeyError
Returns a new instance of InvalidKeyError.
4 5 6 |
# File 'lib/classy/yaml/invalid_key_error.rb', line 4 def initialize(data) @data = data end |
Instance Method Details
#message ⇒ Object
8 9 10 |
# File 'lib/classy/yaml/invalid_key_error.rb', line 8 def "yass called with invalid keys: #{@data}. This error can be raised when calling nested keys on an un-nested root." end |