Exception: QppMeasureDataClient::Exceptions::UnknownFormat

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

Overview

Error Class to throw error when file format is not known

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format) ⇒ UnknownFormat

Public: Throws a custom error message when file format is not found, with format included in message.

format - File format



28
29
30
31
# File 'lib/qpp_measure_data_client/exceptions.rb', line 28

def initialize(format)
  @format = format
  super("Unknown format: #{@format}")
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format.



23
24
25
# File 'lib/qpp_measure_data_client/exceptions.rb', line 23

def format
  @format
end