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