Exception: Lutaml::ModelTransformations::UnsupportedFormatError
- Inherits:
-
StandardError
- Object
- StandardError
- Lutaml::ModelTransformations::UnsupportedFormatError
- Defined in:
- lib/lutaml/model_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
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_path ⇒ String (readonly)
Returns Path to the unsupported file.
397 398 399 |
# File 'lib/lutaml/model_transformations/transformation_engine.rb', line 397 def file_path @file_path end |