Exception: Ea::Transformations::UnsupportedFormatError
- Defined in:
- lib/ea/transformations/transformation_engine.rb
Overview
Error class for unsupported file formats
Instance Attribute Summary collapse
-
#file_path ⇒ String
readonly
Path to the unsupported file.
Instance Method Summary collapse
-
#initialize(file_path) ⇒ UnsupportedFormatError
constructor
Initialize error.
Constructor Details
#initialize(file_path) ⇒ UnsupportedFormatError
Initialize error
383 384 385 386 387 |
# File 'lib/ea/transformations/transformation_engine.rb', line 383 def initialize(file_path) @file_path = file_path extension = File.extname(file_path) super("Unsupported file format: #{extension} (file: #{file_path})") end |
Instance Attribute Details
#file_path ⇒ String (readonly)
Returns Path to the unsupported file.
378 379 380 |
# File 'lib/ea/transformations/transformation_engine.rb', line 378 def file_path @file_path end |