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