Exception: YamlRefResolver::YamlSyntaxErrorException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/yaml_ref_resolver/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message}")
end

Instance Attribute Details

#original_exceptionObject (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