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