author | Claus Gittinger <cg@exept.de> |
Thu, 07 Jun 2018 16:23:29 +0200 | |
changeset 23054 | 2f647561edc5 |
parent 15187 | 6b6bc1d5f281 |
child 18057 | 8da7c39a6322 |
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 |
" |
|
5999 | 12 |
"{ Package: 'stx:libbasic' }" |
13 |
||
8328
08bf52d8a022
Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents:
7586
diff
changeset
|
14 |
ExecutionError subclass:#PrimitiveFailure |
5999 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
8328
08bf52d8a022
Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents:
7586
diff
changeset
|
18 |
category:'Kernel-Exceptions-ExecutionErrors' |
5999 | 19 |
! |
20 |
||
6210
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
21 |
!PrimitiveFailure class methodsFor:'documentation'! |
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
22 |
|
7586 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 2001 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 |
||
6210
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
37 |
documentation |
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
38 |
" |
7232 | 39 |
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
|
40 |
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
|
41 |
|
08bf52d8a022
Convert more instance based exceptions to class based exceptions
Stefan Vogel <sv@exept.de>
parents:
7586
diff
changeset
|
42 |
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
|
43 |
" |
d7039e2ae776
caetgory change and documentation added
Claus Gittinger <cg@exept.de>
parents:
5999
diff
changeset
|
44 |
! ! |
5999 | 45 |
|
15187 | 46 |
!PrimitiveFailure class methodsFor:'initialization'! |
47 |
||
48 |
initialize |
|
49 |
NotifierString := 'primitive failed'. |
|
50 |
||
51 |
" |
|
52 |
self initialize |
|
53 |
" |
|
54 |
! ! |
|
55 |
||
8674 | 56 |
!PrimitiveFailure methodsFor:'printing & storing'! |
57 |
||
58 |
description |
|
59 |
||
8974
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
60 |
|desc| |
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
61 |
|
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
62 |
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
|
63 |
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
|
64 |
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
|
65 |
]. |
a2cb4cf6fe7c
do not fail in #description, if there is no message in parameter
Stefan Vogel <sv@exept.de>
parents:
8674
diff
changeset
|
66 |
^ desc |
8674 | 67 |
! ! |
68 |
||
5999 | 69 |
!PrimitiveFailure class methodsFor:'documentation'! |
70 |
||
71 |
version |
|
15187 | 72 |
^ '$Header: /cvs/stx/stx/libbasic/PrimitiveFailure.st,v 1.8 2013-04-27 10:11:13 cg Exp $' |
5999 | 73 |
! ! |
15187 | 74 |
|
75 |
||
76 |
PrimitiveFailure initialize! |