Exception: QppMeasureDataClient::Exceptions::FileNotFound
- Inherits:
-
QppMeasureDataClientError
- Object
- StandardError
- QppMeasureDataClientError
- QppMeasureDataClient::Exceptions::FileNotFound
- Defined in:
- lib/qpp_measure_data_client/exceptions.rb
Overview
Error Class to throw error when file is not found
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ FileNotFound
constructor
Public: Throws a custom error message when file is not found, with path included in message.
Constructor Details
#initialize(path) ⇒ FileNotFound
Public: Throws a custom error message when file is not found, with path included in message.
path - File path.
15 16 17 18 |
# File 'lib/qpp_measure_data_client/exceptions.rb', line 15 def initialize(path) @path = path super("File not found: #{@path}") end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
10 11 12 |
# File 'lib/qpp_measure_data_client/exceptions.rb', line 10 def path @path end |