author | Claus Gittinger <cg@exept.de> |
Fri, 29 Aug 2003 21:15:21 +0200 | |
changeset 7586 | 63e4900c8931 |
parent 6210 | d7039e2ae776 |
child 15111 | 017507dff46c |
child 17711 | 39faaaf888b4 |
permissions | -rw-r--r-- |
4554 | 1 |
" |
2 |
COPYRIGHT (c) 1999 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
||
6210
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
4554
diff
changeset
|
15 |
"{ Package: 'stx:libbasic' }" |
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
4554
diff
changeset
|
16 |
|
4528 | 17 |
Warning subclass:#ProceedError |
18 |
instanceVariableNames:'' |
|
19 |
classVariableNames:'' |
|
20 |
poolDictionaries:'' |
|
6210
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
4554
diff
changeset
|
21 |
category:'Kernel-Exceptions-Errors' |
4528 | 22 |
! |
23 |
||
24 |
!ProceedError class methodsFor:'documentation'! |
|
25 |
||
4554 | 26 |
copyright |
27 |
" |
|
28 |
COPYRIGHT (c) 1999 by eXept Software AG |
|
29 |
All Rights Reserved |
|
30 |
||
31 |
This software is furnished under a license and may be used |
|
32 |
only in accordance with the terms of that license and with the |
|
33 |
inclusion of the above copyright notice. This software may not |
|
34 |
be provided or otherwise made available to, or used by, any |
|
35 |
other person. No title to or ownership of the software is |
|
36 |
hereby transferred. |
|
37 |
" |
|
38 |
||
39 |
||
40 |
! |
|
41 |
||
4528 | 42 |
documentation |
43 |
" |
|
44 |
ProceedError is raised to indicate that a handler tried to |
|
45 |
proceed an exception marked as nonproceedable. |
|
46 |
||
47 |
The parameter is the exception which tried to proceed. |
|
48 |
||
49 |
NOTE: In the past ST/X didn't distinguish between proceedable |
|
50 |
and non-proceedable exceptions. To make transistion easier, |
|
51 |
this exception is a warning for now. In a future release of |
|
52 |
ST/X, this exception will be changed to be an error |
|
53 |
(child of SignalError). |
|
54 |
Please fix your code. |
|
55 |
" |
|
56 |
||
57 |
! ! |
|
58 |
||
59 |
!ProceedError class methodsFor:'initialization'! |
|
60 |
||
61 |
initialize |
|
62 |
||
63 |
NotifierString := 'handler tried to proceed from nonproceedable exception'. |
|
64 |
||
65 |
" |
|
66 |
self initialize |
|
67 |
" |
|
68 |
||
69 |
||
70 |
! ! |
|
71 |
||
4534 | 72 |
!ProceedError methodsFor:'default actions'! |
73 |
||
74 |
defaultAction |
|
75 |
"make proceeding from a non-proceedable raise a warning for now. |
|
76 |
This will change in future revisions" |
|
77 |
||
78 |
('WARNING: signal <', parameter signal printString, '> has been raised nonproceedable') errorPrintCR. |
|
79 |
(' by: ', parameter suspendedContext printString) errorPrintCR. |
|
80 |
(' ', suspendedContext printString , ' tries to proceed.') errorPrintCR. |
|
81 |
(' This will be an error in future ST/X versions.') errorPrintCR. |
|
82 |
||
83 |
self proceedWith:nil. |
|
84 |
||
85 |
" |
|
86 |
Object errorSignal handle:[:ex| |
|
87 |
ex proceedWith:nil |
|
88 |
] do:[ |
|
89 |
Object errorSignal raise |
|
90 |
]. |
|
91 |
||
92 |
Object errorSignal handle:[:ex| |
|
93 |
ex proceed |
|
94 |
] do:[ |
|
95 |
Object errorSignal raise |
|
96 |
]. |
|
97 |
" |
|
98 |
! ! |
|
99 |
||
4528 | 100 |
!ProceedError class methodsFor:'documentation'! |
101 |
||
102 |
version |
|
7586 | 103 |
^ '$Header: /cvs/stx/stx/libbasic/ProceedError.st,v 1.5 2003-08-29 19:14:59 cg Exp $' |
4528 | 104 |
! ! |
7586 | 105 |
|
4528 | 106 |
ProceedError initialize! |