Exception: YamlRefResolver::YamlSyntaxErrorException
- Inherits:
-
StandardError
- Object
- StandardError
- YamlRefResolver::YamlSyntaxErrorException
- Defined in:
- lib/yaml_ref_resolver/exceptions.rb
Instance Attribute Summary collapse
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(exception:) ⇒ YamlSyntaxErrorException
constructor
A new instance of YamlSyntaxErrorException.
Constructor Details
#initialize(exception:) ⇒ YamlSyntaxErrorException
Returns a new instance of YamlSyntaxErrorException.
15 16 17 18 19 |
# File 'lib/yaml_ref_resolver/exceptions.rb', line 15 def initialize(exception:) @original_exception = exception super("syntax error #{@original_exception.}") end |
Instance Attribute Details
#original_exception ⇒ Object (readonly)
Returns the value of attribute original_exception.
13 14 15 |
# File 'lib/yaml_ref_resolver/exceptions.rb', line 13 def original_exception @original_exception end |