author | Claus Gittinger <cg@exept.de> |
Wed, 26 Jun 2019 22:06:12 +0200 | |
changeset 24369 | e796791ea838 |
parent 21036 | 2b57613c94b7 |
child 21042 | edb2e7f82c62 |
permissions | -rw-r--r-- |
1 | 1 |
" |
2 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
171 | 3 |
All Rights Reserved |
1 | 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 |
" |
|
20093 | 12 |
"{ Package: 'stx:libbasic' }" |
1 | 13 |
|
20093 | 14 |
"{ NameSpace: Smalltalk }" |
6206 | 15 |
|
4481
f3f7e1af7489
added GenericException in-between, to allow for some exceptions
Claus Gittinger <cg@exept.de>
parents:
4480
diff
changeset
|
16 |
GenericException subclass:#Exception |
f3f7e1af7489
added GenericException in-between, to allow for some exceptions
Claus Gittinger <cg@exept.de>
parents:
4480
diff
changeset
|
17 |
instanceVariableNames:'' |
f3f7e1af7489
added GenericException in-between, to allow for some exceptions
Claus Gittinger <cg@exept.de>
parents:
4480
diff
changeset
|
18 |
classVariableNames:'' |
1118
1037616d9add
ignore unhandled querySignals
Claus Gittinger <cg@exept.de>
parents:
1038
diff
changeset
|
19 |
poolDictionaries:'' |
1037616d9add
ignore unhandled querySignals
Claus Gittinger <cg@exept.de>
parents:
1038
diff
changeset
|
20 |
category:'Kernel-Exceptions' |
1 | 21 |
! |
22 |
||
1953
c8a3af54acb3
unhandled querySignals should return nil
Claus Gittinger <cg@exept.de>
parents:
1710
diff
changeset
|
23 |
!Exception class methodsFor:'documentation'! |
12 | 24 |
|
88 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
171 | 28 |
All Rights Reserved |
88 | 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 |
||
12 | 39 |
documentation |
40 |
" |
|
7038 | 41 |
Exception is an abstract superclass of all exceptions in the system, |
7630
fced37c5cccc
Undo previous change form cg (on his request!).
Stefan Vogel <sv@exept.de>
parents:
7038
diff
changeset
|
42 |
which are not generated by user actions (e.g. keyboard interrupts) nor by |
fced37c5cccc
Undo previous change form cg (on his request!).
Stefan Vogel <sv@exept.de>
parents:
7038
diff
changeset
|
43 |
errors in the exception system itself. |
4482 | 44 |
|
7038 | 45 |
Think twice before subclassing directly from Exception. Consider to subclass |
46 |
from one of Exceptions subclasses Error, Warning, UserNotification... |
|
7630
fced37c5cccc
Undo previous change form cg (on his request!).
Stefan Vogel <sv@exept.de>
parents:
7038
diff
changeset
|
47 |
|
fced37c5cccc
Undo previous change form cg (on his request!).
Stefan Vogel <sv@exept.de>
parents:
7038
diff
changeset
|
48 |
You should also handle Error instead of Exception, since breakpoints, |
7038 | 49 |
halts and user informational messages are processed as exceptions. |
50 |
||
51 |
The behavior is in GenericException, to allow for some exceptions |
|
52 |
(UnhandledExceptionException and UserInterrupts) not to be a child of Exception. |
|
4482 | 53 |
|
54 |
[see also:] |
|
7038 | 55 |
Error |
56 |
Warning |
|
57 |
UserNotification |
|
20093 | 58 |
Notification |
4482 | 59 |
Signal |
2174 | 60 |
" |
12 | 61 |
! ! |
4482 | 62 |
|
21036 | 63 |
!Exception class methodsFor:'testing'! |
64 |
||
65 |
isAbstract |
|
66 |
^ self == Exception |
|
67 |
! ! |
|
68 |
||
20093 | 69 |
|
4482 | 70 |
!Exception class methodsFor:'documentation'! |
71 |
||
72 |
version |
|
20093 | 73 |
^ '$Header$' |
4482 | 74 |
|
75 |
! ! |
|
20093 | 76 |