Commit | Line | Data |
---|---|---|
970ed795 | 1 | --///////////////////////////////////////////////////////////////////////////// |
3abe9331 | 2 | -- Copyright (c) 2000-2015 Ericsson Telecom AB |
970ed795 EL |
3 | -- All rights reserved. This program and the accompanying materials |
4 | -- are made available under the terms of the Eclipse Public License v1.0 | |
5 | -- which accompanies this distribution, and is available at | |
6 | -- http://www.eclipse.org/legal/epl-v10.html | |
7 | --///////////////////////////////////////////////////////////////////////////// | |
8 | X682 | |
9 | DEFINITIONS | |
10 | ||
11 | AUTOMATIC TAGS | |
12 | EXTENSIBILITY IMPLIED | |
13 | ||
14 | ::= | |
15 | ||
16 | BEGIN | |
17 | ||
18 | IMPORTS ; | |
19 | ||
20 | ERROR-CLASS ::= CLASS | |
21 | { | |
22 | &category PrintableString(SIZE(1)), | |
23 | &code INTEGER, | |
24 | &Type DEFAULT INTEGER | |
25 | } | |
26 | WITH SYNTAX {&category &code [&Type]} | |
27 | ||
28 | ErrorSet ERROR-CLASS ::= | |
29 | { | |
30 | {"A" 1 [1] INTEGER} | | |
31 | {"A" 2 [1] VisibleString} | | |
32 | {"B" 1 [1] PrintableString} | | |
33 | {"B" 2 [1] BOOLEAN} | | |
34 | oneErrorObject | |
35 | } | |
36 | ||
37 | oneErrorObject ERROR-CLASS ::= { "C" 3 ENUMERATED{foobar} } | |
38 | ||
39 | ErrorReturn ::= SEQUENCE | |
40 | { | |
41 | errorCategory ERROR-CLASS.&category ({ErrorSet}) OPTIONAL, | |
42 | errors SEQUENCE OF SEQUENCE | |
43 | { | |
44 | errorCode ERROR-CLASS.&code({ErrorSet}{@errorCategory}), | |
45 | errorInfo [99] ERROR-CLASS.&Type({ErrorSet}{@errorCategory,@.errorCode}) | |
46 | } OPTIONAL | |
47 | } | |
48 | ||
49 | errorReturn1 ErrorReturn ::= | |
50 | { | |
51 | errorCategory "A", | |
52 | errors | |
53 | { | |
54 | { | |
55 | errorCode 1, | |
56 | errorInfo errorSet-1-Type : 20020716 | |
57 | }, | |
58 | { | |
59 | errorCode 2, | |
60 | errorInfo errorSet-2-Type : "If U can decode this, U can be happy. Smile! :-)" | |
61 | } | |
62 | } | |
63 | } | |
64 | ||
65 | ber-errorReturn1 OCTET STRING ::= '304D800141A148300C020101BF6306810401317DEC3038020102BF63328130496620552063616E206465636F646520746869732C20552063616E2062652068617070792E20536D696C6521203A2D29'H | |
66 | ||
67 | errorReturn2 ErrorReturn ::= | |
68 | { | |
69 | errorCategory "3", | |
70 | errors | |
71 | { | |
72 | { | |
73 | errorCode 3, | |
74 | errorInfo oneErrorObject-Type : foobar | |
75 | } | |
76 | } | |
77 | } | |
78 | ||
79 | END |