Exception: YamlLoadException
- Inherits:
-
CeedlingException
- Object
- RuntimeError
- CeedlingException
- YamlLoadException
- Defined in:
- lib/ceedling/exceptions.rb
Instance Attribute Summary collapse
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(reason:, source:, original_error:, message:) ⇒ YamlLoadException
constructor
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).
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( ) end |
Instance Attribute Details
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
18 19 20 |
# File 'lib/ceedling/exceptions.rb', line 18 def original_error @original_error end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
18 19 20 |
# File 'lib/ceedling/exceptions.rb', line 18 def reason @reason end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
18 19 20 |
# File 'lib/ceedling/exceptions.rb', line 18 def source @source end |