Exception: Renogen::ExtractionStratagies::YamlFile::Exceptions::YamlFileBlank
- Inherits:
-
Renogen::Exceptions::Base
- Object
- StandardError
- Renogen::Exceptions::Base
- Renogen::ExtractionStratagies::YamlFile::Exceptions::YamlFileBlank
- Defined in:
- lib/renogen/extraction_stratagies/yaml_file/exceptions/yaml_file_blank.rb
Overview
This is raised when a yaml file change is found but has not contents
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
Instance Method Summary collapse
-
#initialize(file_path) ⇒ YamlFileBlank
constructor
A new instance of YamlFileBlank.
-
#message ⇒ String
Friendly error message.
Constructor Details
#initialize(file_path) ⇒ YamlFileBlank
Returns a new instance of YamlFileBlank.
9 10 11 12 |
# File 'lib/renogen/extraction_stratagies/yaml_file/exceptions/yaml_file_blank.rb', line 9 def initialize(file_path) @file_path = file_path super end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
7 8 9 |
# File 'lib/renogen/extraction_stratagies/yaml_file/exceptions/yaml_file_blank.rb', line 7 def file_path @file_path end |
Instance Method Details
#message ⇒ String
Friendly error message
17 18 19 |
# File 'lib/renogen/extraction_stratagies/yaml_file/exceptions/yaml_file_blank.rb', line 17 def "Error: File contents blank '#{file_path}'" end |