Exception: QppMeasureDataClient::Exceptions::FileNotFound

Inherits:
QppMeasureDataClientError show all
Defined in:
lib/qpp_measure_data_client/exceptions.rb

Overview

Error Class to throw error when file is not found

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (readonly)

Returns the value of attribute path.



10
11
12
# File 'lib/qpp_measure_data_client/exceptions.rb', line 10

def path
  @path
end