author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 10 Apr 2008 09:14:47 +0000 | |
changeset 3 | 7909b6680107 |
parent 2 | 06f508a6f55c |
child 174 | 76f50ac2e6a0 |
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 |
Object subclass:#DOMErrorHandler |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'Default' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'XML Suite-DOM3' |
|
10 |
! |
|
11 |
||
12 |
!DOMErrorHandler class methodsFor:'documentation'! |
|
13 |
||
14 |
documentation |
|
15 |
" |
|
16 |
DOMErrorHandler is a callback interface that the DOM implementation |
|
17 |
can call when reporting errors that happens while processing XML data, |
|
18 |
or when doing some other processing (e.g. validating a document). |
|
19 |
A DOMErrorHandler object can be attached to a Document using the |
|
20 |
'error-handler' on the DOMConfiguration interface. If more than one |
|
21 |
error needs to be reported during an operation, the sequence and |
|
22 |
numbers of the errors passed to the error handler are |
|
23 |
implementation dependent. |
|
24 |
||
25 |
The application that is using the DOM implementation is expected |
|
26 |
to implement this interface. |
|
27 |
||
28 |
[author:] |
|
29 |
W3C |
|
30 |
||
31 |
[instance variables:] |
|
32 |
||
33 |
[class variables:] |
|
34 |
||
35 |
[see also:] |
|
36 |
||
37 |
" |
|
38 |
! |
|
39 |
||
40 |
history |
|
41 |
"Created: / 10-08-2005 / 22:40:23 / janfrog" |
|
42 |
! ! |
|
43 |
||
44 |
!DOMErrorHandler class methodsFor:'accessing'! |
|
45 |
||
46 |
default |
|
47 |
||
48 |
^Default ifNil:[Default := self new] |
|
49 |
||
50 |
"Created: / 11-08-2005 / 14:22:57 / janfrog" |
|
51 |
"Modified: / 11-08-2005 / 22:32:02 / janfrog" |
|
52 |
! ! |
|
53 |
||
54 |
!DOMErrorHandler methodsFor:'DOM3 interface'! |
|
55 |
||
56 |
handleError:aDOMError |
|
57 |
" |
|
58 |
This method is called on the error handler when an error occurs. |
|
59 |
If an exception is thrown from this method, it is considered to |
|
60 |
be equivalent of returning true. |
|
61 |
||
62 |
Parameters |
|
63 |
aDOMError |
|
64 |
The error object that describes the error. This object may |
|
65 |
be reused by the DOM implementation across multiple |
|
66 |
calls to the handleError method. |
|
67 |
||
68 |
Return Value |
|
69 |
boolean |
|
70 |
If the handleError method returns false, the DOM |
|
71 |
implementation should stop the current processing |
|
72 |
when possible. If the method returns true, the |
|
73 |
processing may continue depending on aDOMError severity. |
|
74 |
" |
|
75 |
||
76 |
aDOMError raise |
|
77 |
||
78 |
"Created: / 10-08-2005 / 22:42:04 / janfrog" |
|
79 |
! ! |
|
80 |
||
81 |
!DOMErrorHandler class methodsFor:'documentation'! |
|
82 |
||
83 |
version |
|
84 |
^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/XMLv2__DOMErrorHandler.st,v 1.1.1.1 2005-11-01 22:05:43 vranyj1 Exp $' |
|
85 |
! ! |