Exception: OpenEHR::Parser::Exception::Validation::InstanceNonConformant

Inherits:
Base
  • Object
show all
Defined in:
lib/openehr/parser/exception.rb

Overview

Raised by ArchetypeValidator#validate_instance for an RM instance that does not conform to an archetype's definition; not one of the VARID..VDFPT archetype-structure rules, since this checks an RM instance against the archetype instead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, path = nil) ⇒ InstanceNonConformant

Returns a new instance of InstanceNonConformant.



71
72
73
74
# File 'lib/openehr/parser/exception.rb', line 71

def initialize(message, path = nil)
  super(message)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



69
70
71
# File 'lib/openehr/parser/exception.rb', line 69

def path
  @path
end