4528
|
1 |
Warning subclass:#ProceedError
|
|
2 |
instanceVariableNames:''
|
|
3 |
classVariableNames:''
|
|
4 |
poolDictionaries:''
|
|
5 |
category:'Kernel-Exceptions'
|
|
6 |
!
|
|
7 |
|
|
8 |
!ProceedError class methodsFor:'documentation'!
|
|
9 |
|
|
10 |
documentation
|
|
11 |
"
|
|
12 |
ProceedError is raised to indicate that a handler tried to
|
|
13 |
proceed an exception marked as nonproceedable.
|
|
14 |
|
|
15 |
The parameter is the exception which tried to proceed.
|
|
16 |
|
|
17 |
NOTE: In the past ST/X didn't distinguish between proceedable
|
|
18 |
and non-proceedable exceptions. To make transistion easier,
|
|
19 |
this exception is a warning for now. In a future release of
|
|
20 |
ST/X, this exception will be changed to be an error
|
|
21 |
(child of SignalError).
|
|
22 |
Please fix your code.
|
|
23 |
"
|
|
24 |
|
|
25 |
! !
|
|
26 |
|
|
27 |
!ProceedError class methodsFor:'initialization'!
|
|
28 |
|
|
29 |
initialize
|
|
30 |
|
|
31 |
NotifierString := 'handler tried to proceed from nonproceedable exception'.
|
|
32 |
|
|
33 |
"
|
|
34 |
self initialize
|
|
35 |
"
|
|
36 |
|
|
37 |
|
|
38 |
! !
|
|
39 |
|
4534
|
40 |
!ProceedError methodsFor:'default actions'!
|
|
41 |
|
|
42 |
defaultAction
|
|
43 |
"make proceeding from a non-proceedable raise a warning for now.
|
|
44 |
This will change in future revisions"
|
|
45 |
|
|
46 |
('WARNING: signal <', parameter signal printString, '> has been raised nonproceedable') errorPrintCR.
|
|
47 |
(' by: ', parameter suspendedContext printString) errorPrintCR.
|
|
48 |
(' ', suspendedContext printString , ' tries to proceed.') errorPrintCR.
|
|
49 |
(' This will be an error in future ST/X versions.') errorPrintCR.
|
|
50 |
|
|
51 |
self proceedWith:nil.
|
|
52 |
|
|
53 |
"
|
|
54 |
Object errorSignal handle:[:ex|
|
|
55 |
ex proceedWith:nil
|
|
56 |
] do:[
|
|
57 |
Object errorSignal raise
|
|
58 |
].
|
|
59 |
|
|
60 |
Object errorSignal handle:[:ex|
|
|
61 |
ex proceed
|
|
62 |
] do:[
|
|
63 |
Object errorSignal raise
|
|
64 |
].
|
|
65 |
"
|
|
66 |
! !
|
|
67 |
|
4528
|
68 |
!ProceedError class methodsFor:'documentation'!
|
|
69 |
|
|
70 |
version
|
4534
|
71 |
^ '$Header: /cvs/stx/stx/libbasic/ProceedError.st,v 1.2 1999-08-04 14:35:58 stefan Exp $'
|
4528
|
72 |
! !
|
|
73 |
ProceedError initialize!
|