Exception: Lutaml::Xsd::PackageMergeError

Inherits:
Error
  • Object
show all
Defined in:
lib/lutaml/xsd/errors.rb

Overview

Package merge error with structured conflict report

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, conflict_report:, error_strategy_sources: []) ⇒ PackageMergeError

Returns a new instance of PackageMergeError.



119
120
121
122
123
124
125
# File 'lib/lutaml/xsd/errors.rb', line 119

def initialize(message:, conflict_report:, error_strategy_sources: [])
  @conflict_report = conflict_report
  @error_strategy_sources = error_strategy_sources

  full_message = build_message(message)
  super(full_message)
end

Instance Attribute Details

#conflict_reportObject (readonly)

Returns the value of attribute conflict_report.



117
118
119
# File 'lib/lutaml/xsd/errors.rb', line 117

def conflict_report
  @conflict_report
end

#error_strategy_sourcesObject (readonly)

Returns the value of attribute error_strategy_sources.



117
118
119
# File 'lib/lutaml/xsd/errors.rb', line 117

def error_strategy_sources
  @error_strategy_sources
end