author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 25 Jan 2016 16:35:43 +0000 | |
changeset 298 | 9696f76605bd |
parent 296 | ea3dbc023c80 |
permissions | -rw-r--r-- |
3
7909b6680107
Loaded into & commited from 5.3.6
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2
diff
changeset
|
1 |
"{ Package: 'stx:goodies/xmlsuite/core' }" |
0 | 2 |
|
3 |
"{ NameSpace: XMLv2 }" |
|
4 |
||
5 |
Error subclass:#SAXError |
|
6 |
instanceVariableNames:'embeddedError' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'XML Suite-Exceptions' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!SAXError class methodsFor:'instance creation'! |
|
14 |
||
15 |
withError:anError |
|
16 |
||
17 |
^self new embeddedError:anError |
|
18 |
||
19 |
"Created: / 17-04-2005 / 09:44:47 / janfrog" |
|
20 |
! |
|
21 |
||
22 |
withMessage:aString |
|
23 |
||
24 |
^self new errorString:aString |
|
25 |
||
26 |
"Created: / 17-04-2005 / 09:45:10 / janfrog" |
|
27 |
"Modified: / 17-04-2005 / 13:59:59 / janfrog" |
|
28 |
! |
|
29 |
||
30 |
withMessage:aString error:anError |
|
31 |
||
32 |
^self new errorString:aString; embeddedError:anError |
|
33 |
||
34 |
"Created: / 17-04-2005 / 09:45:24 / janfrog" |
|
35 |
"Modified: / 17-04-2005 / 14:00:04 / janfrog" |
|
36 |
! ! |
|
37 |
||
38 |
!SAXError methodsFor:'SAX2 interface'! |
|
39 |
||
40 |
getError |
|
41 |
^embeddedError |
|
42 |
||
43 |
"Created: / 17-04-2005 / 09:43:15 / janfrog" |
|
44 |
! |
|
45 |
||
46 |
getMessage |
|
77
d17c7dfb3d53
Minor fixes for stc compilation
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3
diff
changeset
|
47 |
^self description |
0 | 48 |
|
49 |
"Created: / 17-04-2005 / 09:43:25 / janfrog" |
|
50 |
"Modified: / 17-04-2005 / 13:59:45 / janfrog" |
|
51 |
! ! |
|
52 |
||
53 |
!SAXError methodsFor:'accessing private'! |
|
54 |
||
55 |
embeddedError |
|
56 |
^ embeddedError |
|
57 |
||
58 |
"Created: / 17-04-2005 / 09:43:38 / janfrog" |
|
59 |
! |
|
60 |
||
61 |
embeddedError:something |
|
62 |
embeddedError := something. |
|
63 |
||
64 |
"Created: / 17-04-2005 / 09:43:38 / janfrog" |
|
65 |
! ! |
|
66 |
||
67 |
!SAXError class methodsFor:'documentation'! |
|
68 |
||
69 |
version |
|
70 |
^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__SAXError.st,v 1.2 2006-12-07 08:17:10 vranyj1 Exp $' |
|
174
76f50ac2e6a0
removed dependency on libutilui ans sunit, testcases are autoloaded
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
77
diff
changeset
|
71 |
! |
76f50ac2e6a0
removed dependency on libutilui ans sunit, testcases are autoloaded
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
77
diff
changeset
|
72 |
|
76f50ac2e6a0
removed dependency on libutilui ans sunit, testcases are autoloaded
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
77
diff
changeset
|
73 |
version_SVN |
76f50ac2e6a0
removed dependency on libutilui ans sunit, testcases are autoloaded
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
77
diff
changeset
|
74 |
^ '$Id$' |
0 | 75 |
! ! |