source: ruby/trunk/lib/adl_parser/lib/adl_exception.rb@ 323

Last change on this file since 323 was 323, checked in by Tatsukawa, Akimichi, 15 years ago

commit at the timing of leaving Pittsburgh

File size: 2.1 KB
Line 
1module OpenEhr
2 module ADL
3 module Exception
4 class Base < RuntimeError
5 end
6
7 module Scanner
8 class Base < RuntimeError
9 end
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
62 end
63 end
64end
65
Note: See TracBrowser for help on using the repository browser.