author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 10 Jun 2015 08:43:00 +0100 | |
branch | jv |
changeset 18482 | 68a43e2b3e78 |
parent 18050 | 131d0413b25b |
child 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 |
|
4528 | 14 |
Warning subclass:#ProceedError |
18050
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
15 |
instanceVariableNames: '' |
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
16 |
classVariableNames: '' |
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
17 |
poolDictionaries: '' |
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
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 |
||
18050
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
56 |
|
4528 | 57 |
!ProceedError class methodsFor:'initialization'! |
58 |
||
59 |
initialize |
|
60 |
||
61 |
NotifierString := 'handler tried to proceed from nonproceedable exception'. |
|
62 |
||
63 |
" |
|
64 |
self initialize |
|
65 |
" |
|
66 |
||
67 |
||
68 |
! ! |
|
69 |
||
18050
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
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 |
||
15111 | 77 |
('WARNING: signal <', parameter creator printString, '> has been raised nonproceedable') errorPrintCR. |
4534 | 78 |
(' by: ', parameter suspendedContext printString) errorPrintCR. |
79 |
(' ', suspendedContext printString , ' tries to proceed.') errorPrintCR. |
|
80 |
(' This will be an error in future ST/X versions.') errorPrintCR. |
|
81 |
||
82 |
self proceedWith:nil. |
|
83 |
||
84 |
" |
|
85 |
Object errorSignal handle:[:ex| |
|
86 |
ex proceedWith:nil |
|
87 |
] do:[ |
|
88 |
Object errorSignal raise |
|
89 |
]. |
|
90 |
||
91 |
Object errorSignal handle:[:ex| |
|
92 |
ex proceed |
|
93 |
] do:[ |
|
94 |
Object errorSignal raise |
|
95 |
]. |
|
96 |
" |
|
97 |
! ! |
|
98 |
||
18050
131d0413b25b
Merged 5b83e8406d5d and 6278efcd484d (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
99 |
|
4528 | 100 |
!ProceedError class methodsFor:'documentation'! |
101 |
||
102 |
version |
|
15111 | 103 |
^ '$Header: /cvs/stx/stx/libbasic/ProceedError.st,v 1.6 2013-04-19 08:40:03 cg Exp $' |
17761
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
104 |
! |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
105 |
|
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
106 |
version_SVN |
17911 | 107 |
^ '$Id: ProceedError.st 10761 2012-01-19 11:46:00Z vranyj1 $' |
4528 | 108 |
! ! |
7586 | 109 |
|
15111 | 110 |
|
4528 | 111 |
ProceedError initialize! |