Exception: YamlLoadException

Inherits:
CeedlingException show all
Defined in:
lib/ceedling/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason:, source:, original_error:, message:) ⇒ YamlLoadException

reason: :syntax (malformed YAML), :unsafe (Psych safe_load rejected a disallowed type), :incompatible (installed Psych's safe_load interface doesn't support a required feature/argument), :not_found (source file doesn't exist)



23
24
25
26
27
28
# File 'lib/ceedling/exceptions.rb', line 23

def initialize(reason:, source:, original_error:, message:)
  @reason         = reason
  @source         = source
  @original_error = original_error
  super( message )
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



18
19
20
# File 'lib/ceedling/exceptions.rb', line 18

def original_error
  @original_error
end

#reasonObject (readonly)

Returns the value of attribute reason.



18
19
20
# File 'lib/ceedling/exceptions.rb', line 18

def reason
  @reason
end

#sourceObject (readonly)

Returns the value of attribute source.



18
19
20
# File 'lib/ceedling/exceptions.rb', line 18

def source
  @source
end