Exception: Hocon::Impl::AbstractConfigValue::NotPossibleToResolve
- Inherits:
-
Exception
- Object
- Exception
- Hocon::Impl::AbstractConfigValue::NotPossibleToResolve
- Defined in:
- lib/hocon/impl/abstract_config_value.rb
Overview
This exception means that a value is inherently not resolveable, at the moment the only known cause is a cycle of substitutions. This is a checked exception since it’s internal to the library and we want to be sure we handle it before passing it out to public API. This is only supposed to be thrown by the target of a cyclic reference and it’s supposed to be caught by the ConfigReference looking up that reference, so it should be impossible for an outermost resolve() to throw this.
Contrast with ConfigException.NotResolved which just means nobody called resolve().
Instance Attribute Summary collapse
-
#trace_string ⇒ Object
readonly
Returns the value of attribute trace_string.
Instance Method Summary collapse
-
#initialize(context) ⇒ NotPossibleToResolve
constructor
A new instance of NotPossibleToResolve.
Constructor Details
#initialize(context) ⇒ NotPossibleToResolve
Returns a new instance of NotPossibleToResolve.
43 44 45 46 |
# File 'lib/hocon/impl/abstract_config_value.rb', line 43 def initialize(context) super("was not possible to resolve") @trace_string = context.trace_string end |
Instance Attribute Details
#trace_string ⇒ Object (readonly)
Returns the value of attribute trace_string.
48 49 50 |
# File 'lib/hocon/impl/abstract_config_value.rb', line 48 def trace_string @trace_string end |