Changeset 323 for ruby/trunk/lib/adl_parser/lib/adl_exception.rb
- Timestamp:
- Oct 19, 2009, 5:10:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/trunk/lib/adl_parser/lib/adl_exception.rb
r307 r323 5 5 end 6 6 7 module CADLScanner7 module Scanner 8 8 class Base < RuntimeError 9 9 end 10 10 end 11 12 module Parser 13 class Base < RuntimeError 14 end 15 end 16 17 18 # 19 # 20 # c.f. beale07:_archet_defin_languag,p.100 21 module Validation 22 class Base < RuntimeError 23 end 24 25 class VARID < Base 26 MESSAGE = "The archetype must have an identifier value for the archetype_id section. The identifier must conform to the published openEHR specification for archetype identifiers." 27 end 28 29 class VARCN < Base 30 MESSAGE = "The archetype must have an archetype term value in concept section. The term must exist in the archetype ontology." 31 end 32 33 class VARDF < Base 34 MESSAGE = "The archetype must have a definition section, expressed as a cADL syntax." 35 end 36 37 class VARON < Base 38 MESSAGE = "The archetype must have a ontology section, expressed as a dADL syntax." 39 end 40 41 class VARDT < Base 42 MESSAGE = "The topmost typename mentioned in the archetype definition section must match the type mentioned in the type-name slot of the first segment of the archetype id." 43 end 44 45 class VATDF < Base 46 MESSAGE = "Each archetype term used as a node identifier the archetype definition must be defined in the term_definitions part of the ontology." 47 end 48 49 class VACDF < Base 50 MESSAGE = "Each constraint code used in the archetype definition must be defined in the constraint_definition part of the ontology." 51 end 52 53 class VDFAI < Base 54 MESSAGE = "Any archetype identifier mentioned in an archetype slot in the definition section must conform to the published openEHR specification for archetype identifiers." 55 end 56 57 class VDFPT < Base 58 MESSAGE = "Any path mentioned in the definition section must be valid syntactically, and a valid path with respect to the hierarchical structure of the definition section." 59 end 60 end 61 11 62 end 12 63 end
Note:
See TracChangeset
for help on using the changeset viewer.