Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
 
29
 
30
$LINKAGE = "C++" ;
31
$NAMESPACE = "std" ;
32
 
33
+USE "cpp", "exception", "except" ;
34
 
35
%%
36
// DUMMY STRING TYPE
37
typedef const char *_string ;
38
 
39
// BASE CLASS FOR LOGICAL ERROR EXCEPTIONS
40
class logic_error : public exception {
41
public :
42
    logic_error ( const _string & ) ;
43
} ;
44
 
45
// DOMAIN ERROR EXCEPTIONS
46
class domain_error : public logic_error {
47
public :
48
    domain_error ( const _string & ) ;
49
} ;
50
 
51
// INVALID ARGUMENT EXCEPTIONS
52
class invalid_argument : public logic_error {
53
public :
54
    invalid_argument ( const _string & ) ;
55
} ;
56
 
57
// LENGTH ERROR EXCEPTIONS
58
class length_error : public logic_error {
59
public :
60
    length_error ( const _string & ) ;
61
} ;
62
 
63
// OUT OF RANGE ERROR EXCEPTIONS
64
class out_of_range : public logic_error {
65
public :
66
    out_of_range ( const _string & ) ;
67
} ;
68
 
69
// BASE CLASS FOR RUNTIME ERROR EXCEPTIONS
70
class runtime_error : public exception {
71
public :
72
    runtime_error ( const _string & ) ;
73
} ;
74
 
75
// RANGE ERROR EXCEPTIONS
76
class range_error : public runtime_error {
77
public :
78
    range_error ( const _string & ) ;
79
} ;
80
 
81
// OVERFLOW ERROR EXCEPTIONS
82
class overflow_error : public runtime_error {
83
public :
84
    overflow_error ( const _string & ) ;
85
} ;
86
%%