Exception: LaunchDarkly::Impl::FileData::ReadError Private
- Inherits:
-
StandardError
- Object
- StandardError
- LaunchDarkly::Impl::FileData::ReadError
- Defined in:
- lib/ldclient-rb/impl/file_data/document.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Raised when a file cannot be read or parsed. It carries the path so that callers can tell a per-file failure from a failure to merge the files' contents.
Instance Attribute Summary collapse
-
#missing ⇒ Boolean
readonly
private
True when the file does not exist.
- #path ⇒ String readonly private
Instance Method Summary collapse
-
#initialize(path, message, missing: false) ⇒ ReadError
constructor
private
A new instance of ReadError.
Constructor Details
#initialize(path, message, missing: false) ⇒ ReadError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ReadError.
33 34 35 36 37 |
# File 'lib/ldclient-rb/impl/file_data/document.rb', line 33 def initialize(path, , missing: false) super("#{} [#{path}]") @path = path @missing = missing end |
Instance Attribute Details
#missing ⇒ Boolean (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns true when the file does not exist.
26 27 28 |
# File 'lib/ldclient-rb/impl/file_data/document.rb', line 26 def missing @missing end |
#path ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/ldclient-rb/impl/file_data/document.rb', line 23 def path @path end |