Class: Hocon::Impl::Parseable::ParseableNotFound
- Inherits:
-
Hocon::Impl::Parseable
- Object
- Hocon::Impl::Parseable
- Hocon::Impl::Parseable::ParseableNotFound
- Defined in:
- lib/hocon/impl/parseable.rb
Overview
this is a parseable that doesn’t exist and just throws when you try to parse it
Constant Summary
Constants inherited from Hocon::Impl::Parseable
Instance Method Summary collapse
- #create_origin ⇒ Object
- #custom_reader ⇒ Object
-
#initialize(what, message, options) ⇒ ParseableNotFound
constructor
A new instance of ParseableNotFound.
Methods inherited from Hocon::Impl::Parseable
#content_type, #fixup_options, force_parsed_to_object, #guess_syntax, #include_context, new_file, new_not_found, new_resources, new_string, #options, #origin, #parse, #parse_config_document, #parse_document, #parse_document_from_origin, parse_stack, #parse_value, #parse_value_from_origin, #post_construct, #raw_parse_document, #raw_parse_document_from_io, #raw_parse_value, #raw_parse_value_from_io, #reader, #relative_to, relative_to, syntax_from_extension, #to_s, trace
Methods included from ConfigParseable
Constructor Details
#initialize(what, message, options) ⇒ ParseableNotFound
Returns a new instance of ParseableNotFound.
333 334 335 336 337 338 |
# File 'lib/hocon/impl/parseable.rb', line 333 def initialize(what, , ) super() @what = what @message = post_construct() end |
Instance Method Details
#create_origin ⇒ Object
344 345 346 |
# File 'lib/hocon/impl/parseable.rb', line 344 def create_origin Hocon::Impl::SimpleConfigOrigin.new_simple(@what) end |
#custom_reader ⇒ Object
340 341 342 |
# File 'lib/hocon/impl/parseable.rb', line 340 def custom_reader raise Hocon::ConfigError::ConfigBugOrBrokenError, @message end |