author | Stefan Vogel <sv@exept.de> |
Mon, 22 Jun 2015 11:33:37 +0200 | |
branch | expecco_2_7_5_branch |
changeset 18499 | b132ac7c9d6a |
parent 7630 | fced37c5cccc |
child 17711 | 39faaaf888b4 |
child 20093 | 169c6926169a |
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 |
" |
|
12 |
||
6206 | 13 |
"{ Package: 'stx:libbasic' }" |
14 |
||
4481
f3f7e1af7489
added GenericException in-between, to allow for some exceptions
Claus Gittinger <cg@exept.de>
parents:
4480
diff
changeset
|
15 |
GenericException subclass:#Exception |
f3f7e1af7489
added GenericException in-between, to allow for some exceptions
Claus Gittinger <cg@exept.de>
parents:
4480
diff
changeset
|
16 |
instanceVariableNames:'' |
f3f7e1af7489
added GenericException in-between, to allow for some exceptions
Claus Gittinger <cg@exept.de>
parents:
4480
diff
changeset
|
17 |
classVariableNames:'' |
1118
1037616d9add
ignore unhandled querySignals
Claus Gittinger <cg@exept.de>
parents:
1038
diff
changeset
|
18 |
poolDictionaries:'' |
1037616d9add
ignore unhandled querySignals
Claus Gittinger <cg@exept.de>
parents:
1038
diff
changeset
|
19 |
category:'Kernel-Exceptions' |
1 | 20 |
! |
21 |
||
1953
c8a3af54acb3
unhandled querySignals should return nil
Claus Gittinger <cg@exept.de>
parents:
1710
diff
changeset
|
22 |
!Exception class methodsFor:'documentation'! |
12 | 23 |
|
88 | 24 |
copyright |
25 |
" |
|
26 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
171 | 27 |
All Rights Reserved |
88 | 28 |
|
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
12 | 38 |
documentation |
39 |
" |
|
7038 | 40 |
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
|
41 |
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
|
42 |
errors in the exception system itself. |
4482 | 43 |
|
7038 | 44 |
Think twice before subclassing directly from Exception. Consider to subclass |
45 |
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
|
46 |
|
fced37c5cccc
Undo previous change form cg (on his request!).
Stefan Vogel <sv@exept.de>
parents:
7038
diff
changeset
|
47 |
You should also handle Error instead of Exception, since breakpoints, |
7038 | 48 |
halts and user informational messages are processed as exceptions. |
49 |
||
50 |
The behavior is in GenericException, to allow for some exceptions |
|
51 |
(UnhandledExceptionException and UserInterrupts) not to be a child of Exception. |
|
4482 | 52 |
|
53 |
[see also:] |
|
7038 | 54 |
Error |
55 |
Warning |
|
56 |
UserNotification |
|
57 |
Notifcation |
|
4482 | 58 |
Signal |
2174 | 59 |
" |
12 | 60 |
! ! |
4482 | 61 |
|
62 |
!Exception class methodsFor:'documentation'! |
|
63 |
||
64 |
version |
|
7630
fced37c5cccc
Undo previous change form cg (on his request!).
Stefan Vogel <sv@exept.de>
parents:
7038
diff
changeset
|
65 |
^ '$Header: /cvs/stx/stx/libbasic/Exception.st,v 1.82 2003-10-07 13:25:24 stefan Exp $' |
4482 | 66 |
|
67 |
! ! |