Exception: Lutaml::ModelTransformations::UnsupportedFormatError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/lutaml/model_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



402
403
404
405
406
# File 'lib/lutaml/model_transformations/transformation_engine.rb', line 402

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



397
398
399
# File 'lib/lutaml/model_transformations/transformation_engine.rb', line 397

def file_path
  @file_path
end