Class: Lutaml::Xml::Error::XmlError

Inherits:
Model::Error show all
Defined in:
lib/lutaml/xml/error/xml_error.rb

Overview

Base class for all XML-related errors

Provides a common base for XML-specific error handling that can be caught separately from general Lutaml::Model::Error.

Examples:

Catching all XML errors

begin
  model.to_xml
rescue Lutaml::Xml::Error::XmlError => e
  puts "XML error: #{e.message}"
end