author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 28 Sep 2011 20:07:49 +0100 | |
branch | jv |
changeset 17865 | 598963c6ff8e |
parent 17846 | 24edc476ac18 |
child 17869 | 9610c6c94e71 |
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 |
" |
|
6206 | 12 |
"{ Package: 'stx:libbasic' }" |
13 |
||
4481
f3f7e1af7489
added GenericException in-between, to allow for some exceptions
Claus Gittinger <cg@exept.de>
parents:
4480
diff
changeset
|
14 |
GenericException subclass:#Exception |
f3f7e1af7489
added GenericException in-between, to allow for some exceptions
Claus Gittinger <cg@exept.de>
parents:
4480
diff
changeset
|
15 |
instanceVariableNames:'' |
f3f7e1af7489
added GenericException in-between, to allow for some exceptions
Claus Gittinger <cg@exept.de>
parents:
4480
diff
changeset
|
16 |
classVariableNames:'' |
1118
1037616d9add
ignore unhandled querySignals
Claus Gittinger <cg@exept.de>
parents:
1038
diff
changeset
|
17 |
poolDictionaries:'' |
1037616d9add
ignore unhandled querySignals
Claus Gittinger <cg@exept.de>
parents:
1038
diff
changeset
|
18 |
category:'Kernel-Exceptions' |
1 | 19 |
! |
20 |
||
1953
c8a3af54acb3
unhandled querySignals should return nil
Claus Gittinger <cg@exept.de>
parents:
1710
diff
changeset
|
21 |
!Exception class methodsFor:'documentation'! |
12 | 22 |
|
88 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 1993 by Claus Gittinger |
|
171 | 26 |
All Rights Reserved |
88 | 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 |
||
12 | 37 |
documentation |
38 |
" |
|
7038 | 39 |
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
|
40 |
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
|
41 |
errors in the exception system itself. |
4482 | 42 |
|
7038 | 43 |
Think twice before subclassing directly from Exception. Consider to subclass |
44 |
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
|
45 |
|
fced37c5cccc
Undo previous change form cg (on his request!).
Stefan Vogel <sv@exept.de>
parents:
7038
diff
changeset
|
46 |
You should also handle Error instead of Exception, since breakpoints, |
7038 | 47 |
halts and user informational messages are processed as exceptions. |
48 |
||
49 |
The behavior is in GenericException, to allow for some exceptions |
|
50 |
(UnhandledExceptionException and UserInterrupts) not to be a child of Exception. |
|
4482 | 51 |
|
52 |
[see also:] |
|
7038 | 53 |
Error |
54 |
Warning |
|
55 |
UserNotification |
|
56 |
Notifcation |
|
4482 | 57 |
Signal |
2174 | 58 |
" |
12 | 59 |
! ! |
4482 | 60 |
|
61 |
!Exception class methodsFor:'documentation'! |
|
62 |
||
63 |
version |
|
17865 | 64 |
^ '$Id: Exception.st 10695 2011-09-28 19:07:49Z vranyj1 $' |
65 |
||
66 |
! |
|
4482 | 67 |
|
17865 | 68 |
version_SVN |
69 |
^ '$Id: Exception.st 10695 2011-09-28 19:07:49Z vranyj1 $' |
|
17846 | 70 |
! ! |