author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 07 Jul 2011 23:08:07 +0100 | |
branch | jv |
changeset 17845 | 7e0cfaac936d |
parent 17761 | b0e5971141bc |
child 17846 | 24edc476ac18 |
permissions | -rw-r--r-- |
7586 | 1 |
" |
2 |
COPYRIGHT (c) 2001 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 |
" |
|
17845 | 12 |
|
5999 | 13 |
"{ Package: 'stx:libbasic' }" |
14 |
||
8328
08bf52d8a022
Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents:
7586
diff
changeset
|
15 |
ExecutionError subclass:#PrimitiveFailure |
5999 | 16 |
instanceVariableNames:'' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
8328
08bf52d8a022
Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents:
7586
diff
changeset
|
19 |
category:'Kernel-Exceptions-ExecutionErrors' |
5999 | 20 |
! |
21 |
||
6210
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
22 |
!PrimitiveFailure class methodsFor:'documentation'! |
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
23 |
|
7586 | 24 |
copyright |
25 |
" |
|
26 |
COPYRIGHT (c) 2001 by eXept Software AG |
|
27 |
All Rights Reserved |
|
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 |
||
6210
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
38 |
documentation |
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
39 |
" |
7232 | 40 |
Raised when a primitive C-code method failed to perform its operation |
6210
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
41 |
Typically, raised with bad arguments. |
8328
08bf52d8a022
Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents:
7586
diff
changeset
|
42 |
|
08bf52d8a022
Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents:
7586
diff
changeset
|
43 |
The parameter is the message that triggered the error. |
6210
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
44 |
" |
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
45 |
! ! |
5999 | 46 |
|
8674 | 47 |
!PrimitiveFailure methodsFor:'printing & storing'! |
48 |
||
49 |
description |
|
50 |
||
8974
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
51 |
|desc| |
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
52 |
|
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
53 |
desc := super description, ': ', originator printString. |
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
54 |
parameter notNil ifTrue:[ |
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
55 |
desc := desc, '>>', parameter selector printString |
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
56 |
]. |
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
57 |
^ desc |
8674 | 58 |
! ! |
59 |
||
5999 | 60 |
!PrimitiveFailure class methodsFor:'documentation'! |
61 |
||
62 |
version |
|
17845 | 63 |
^ '$Id: PrimitiveFailure.st 10656 2011-07-07 22:08:07Z vranyj1 $' |
64 |
! ! |