blob: cb8f1ab3aad69464ca348f4ce3868f66af456bb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
;;; conditions.scm --- The R6RS conditions library
;; Copyright (C) 2010 Free Software Foundation, Inc.
;;
;; This library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public
;; License as published by the Free Software Foundation; either
;; version 3 of the License, or (at your option) any later version.
;;
;; This library is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; Lesser General Public License for more details.
;;
;; You should have received a copy of the GNU Lesser General Public
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
(library (rnrs conditions (6))
(export &condition
condition
simple-conditions
condition?
condition-predicate
condition-accessor
define-condition-type
&message
make-message-condition
message-condition?
condition-message
&warning
make-warning
warning?
&serious
make-serious-condition
serious-condition?
&error
make-error
error?
&violation
make-violation
violation?
&assertion
make-assertion-violation
assertion-violation?
&irritants
make-irritants-condition
irritants-condition?
condition-irritants
&who
make-who-condition
who-condition?
condition-who
&non-continuable
make-non-continuable-violation
non-continuable-violation?
&implementation-restriction
make-implementation-restriction-violation
implementation-restriction-violation?
&lexical
make-lexical-violation
lexical-violation?
&syntax
make-syntax-violation
syntax-violation?
syntax-violation-form
syntax-violation-subform
&undefined
make-undefined-violation
undefined-violation?)
(import (rename (ice-9 exceptions)
(&exception &condition)
(make-exception condition)
(simple-exceptions simple-conditions)
(exception? condition?)
(exception-predicate condition-predicate)
(exception-accessor condition-accessor)
(define-exception-type define-condition-type)
(make-exception-with-message make-message-condition)
(exception-with-message? message-condition?)
(exception-message condition-message)
(&error &serious)
(make-error make-serious-condition)
(error? serious-condition?)
(&external-error &error)
(make-external-error make-error)
(external-error? error?)
(&programming-error &violation)
(make-programming-error make-violation)
(programming-error? violation?)
(&assertion-failure &assertion-violation)
(make-assertion-failure make-assertion-violation)
(assertion-failure? assertion-violation?)
(make-exception-with-irritants make-irritants-condition)
(exception-with-irritants? irritants-condition?)
(exception-irritants condition-irritants)
(make-exception-with-origin make-who-condition)
(exception-with-origin? who-condition?)
(exception-origin condition-who)
(make-non-continuable-error make-non-continuable-violation)
(non-continuable-error? non-continuable-violation?)
(make-implementation-restriction-error
make-implementation-restriction-violation)
(implementation-restriction-error?
implementation-restriction-violation?)
(make-lexical-error make-lexical-violation)
(lexical-error? lexical-violation?)
(make-syntax-error make-syntax-violation)
(syntax-error? syntax-violation?)
(syntax-error-form syntax-violation-form)
(syntax-error-subform syntax-violation-subform)
(&undefined-variable &undefined)
(make-undefined-variable-error make-undefined-violation)
(undefined-variable-error? undefined-violation?))))
|