Exception: QppMeasureDataClient::Exceptions::UnknownFormat
- Inherits:
-
QppMeasureDataClientError
- Object
- StandardError
- QppMeasureDataClientError
- QppMeasureDataClient::Exceptions::UnknownFormat
- 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
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize(format) ⇒ UnknownFormat
constructor
Public: Throws a custom error message when file format is not found, with format included in message.
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
#format ⇒ Object (readonly)
Returns the value of attribute format.
23 24 25 |
# File 'lib/qpp_measure_data_client/exceptions.rb', line 23 def format @format end |