Exception: Ea::Transformations::UnsupportedFormatError

Inherits:
Error
  • Object
show all
Defined in:
lib/ea/transformations/transformation_engine.rb

Overview

Error class for unsupported file formats

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path) ⇒ UnsupportedFormatError

Initialize error

Parameters:

  • file_path (String)

    Path to unsupported file



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_pathString (readonly)

Returns Path to the unsupported file.

Returns:

  • (String)

    Path to the unsupported file



378
379
380
# File 'lib/ea/transformations/transformation_engine.rb', line 378

def file_path
  @file_path
end