author | Jan Vrany <jan.vrany@labware.com> |
Thu, 25 Mar 2021 20:30:03 +0000 | |
branch | jv |
changeset 25411 | 248600ba8fd9 |
parent 21024 | 8734987eb5c7 |
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 |
18050
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
17 |
instanceVariableNames: '' |
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
18 |
classVariableNames: '' |
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
19 |
poolDictionaries: '' |
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
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 |
||
18050
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
58 |
|
4528 | 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 |
||
18050
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
72 |
|
4534 | 73 |
!ProceedError methodsFor:'default actions'! |
74 |
||
75 |
defaultAction |
|
76 |
"make proceeding from a non-proceedable raise a warning for now. |
|
77 |
This will change in future revisions" |
|
78 |
||
15111 | 79 |
('WARNING: signal <', parameter creator printString, '> has been raised nonproceedable') errorPrintCR. |
4534 | 80 |
(' by: ', parameter suspendedContext printString) errorPrintCR. |
20962 | 81 |
(' : ', parameter suspendedContext sender printString) errorPrintCR. |
82 |
(' : ', parameter suspendedContext sender sender printString) errorPrintCR. |
|
4534 | 83 |
(' ', suspendedContext printString , ' tries to proceed.') errorPrintCR. |
20962 | 84 |
(' in: ', thisContext sender printString) errorPrintCR. |
85 |
(' : ', thisContext sender sender printString) errorPrintCR. |
|
86 |
(' : ', thisContext sender sender sender printString) errorPrintCR. |
|
87 |
(' This may be an error in future ST/X versions.') errorPrintCR. |
|
4534 | 88 |
|
89 |
self proceedWith:nil. |
|
90 |
||
91 |
" |
|
92 |
Object errorSignal handle:[:ex| |
|
93 |
ex proceedWith:nil |
|
94 |
] do:[ |
|
95 |
Object errorSignal raise |
|
96 |
]. |
|
97 |
||
98 |
Object errorSignal handle:[:ex| |
|
99 |
ex proceed |
|
100 |
] do:[ |
|
101 |
Object errorSignal raise |
|
102 |
]. |
|
103 |
" |
|
20962 | 104 |
|
105 |
"Modified: / 13-11-2016 / 10:52:37 / cg" |
|
4534 | 106 |
! ! |
107 |
||
18050
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
108 |
|
4528 | 109 |
!ProceedError class methodsFor:'documentation'! |
110 |
||
111 |
version |
|
20962 | 112 |
^ '$Header$' |
17761
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
113 |
! |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
114 |
|
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
115 |
version_SVN |
17911 | 116 |
^ '$Id: ProceedError.st 10761 2012-01-19 11:46:00Z vranyj1 $' |
4528 | 117 |
! ! |
7586 | 118 |
|
15111 | 119 |
|
4528 | 120 |
ProceedError initialize! |