1 |
wakaba |
1.1 |
package Message::DOM::DOMException; |
2 |
|
|
use strict; |
3 |
wakaba |
1.7 |
our $VERSION=do{my @r=(q$Revision: 1.6 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r}; |
4 |
wakaba |
1.1 |
push our @ISA, 'Message::Util::Error', 'Message::IF::DOMException'; |
5 |
|
|
require Message::Util::Error; |
6 |
|
|
|
7 |
|
|
sub ___error_def () {+{ |
8 |
wakaba |
1.4 |
WRONG_DOCUMENT_ERR => { |
9 |
|
|
-code => 4, |
10 |
|
|
-description => q(Can't insert into different document), |
11 |
|
|
}, |
12 |
wakaba |
1.7 |
INVALID_CHARACTER_ERR => { |
13 |
|
|
-code => 5, |
14 |
|
|
-subtype => { |
15 |
|
|
MALFORMED_NAME_ERR => { |
16 |
|
|
-description => q(Not a legal XML |Name|), |
17 |
|
|
}, |
18 |
|
|
}, |
19 |
|
|
}, |
20 |
wakaba |
1.1 |
NO_MODIFICATION_ALLOWED_ERR => { |
21 |
|
|
-code => 7, |
22 |
|
|
-subtype => { |
23 |
wakaba |
1.3 |
READ_ONLY_NODE_ERR => { |
24 |
|
|
-description => q(Can't modify read-only node), |
25 |
|
|
}, |
26 |
wakaba |
1.1 |
READ_ONLY_NODE_LIST_ERR => { |
27 |
|
|
-description => q(Can't modify read-only node list), |
28 |
|
|
}, |
29 |
|
|
}, |
30 |
|
|
}, |
31 |
wakaba |
1.4 |
NOT_SUPPORTED_ERR => { |
32 |
|
|
-code => 9, |
33 |
|
|
-subtype => { |
34 |
wakaba |
1.6 |
ADOPT_NODE_TYPE_NOT_SUPPORTED_ERR => { |
35 |
|
|
-description => q(Can't adopt specified type of node), |
36 |
|
|
}, |
37 |
wakaba |
1.5 |
CLONE_NODE_TYPE_NOT_SUPPORTED_ERR => { |
38 |
|
|
-description => q(Can't clone specified type of node), |
39 |
|
|
}, |
40 |
wakaba |
1.4 |
NON_HTML_OPERATION_ERR => { |
41 |
|
|
-description => q(Can't apply to HTML document), |
42 |
|
|
}, |
43 |
|
|
UNKNOWN_XML_VERSION_ERR => { |
44 |
|
|
-description => q(Specified version of XML is not supported), |
45 |
|
|
}, |
46 |
|
|
}, |
47 |
|
|
}, |
48 |
|
|
INUSE_ATTRIBUTE_ERR => { |
49 |
|
|
-code => 10, |
50 |
|
|
-description => q(Attribute is already in use), |
51 |
|
|
}, |
52 |
wakaba |
1.7 |
NAMESPACE_ERR => { |
53 |
|
|
-code => 14, |
54 |
|
|
-subtype => { |
55 |
|
|
MALFORMED_QNAME_ERR => { |
56 |
|
|
-description => q(Malformed XML qualified name), |
57 |
|
|
}, |
58 |
|
|
NONXMLNSPREFIX_XMLNSNS_ERR => { |
59 |
|
|
-description => q(Namespace prefix "xmlns" must be used for namespace URI <http://www.w3.org/2000/xmlns/>), |
60 |
|
|
}, |
61 |
|
|
PREFIXED_NULLNS_ERR => { |
62 |
|
|
-description => q(A namespace prefix is specified while namespace URI is null), |
63 |
|
|
}, |
64 |
|
|
XMLNS_NONXMLNSNS_ERR => { |
65 |
|
|
-description => q(Qualified name "xmlns" can only be used with namespace URI <http://www.w3.org/2000/xmlns/>), |
66 |
|
|
}, |
67 |
|
|
XMLNSPREFIX_NONXMLNSNS_ERR => { |
68 |
|
|
-description => q(Namespace prefix "xmlns" cannot be used for namespace URI other than <http://www.w3.org/2000/xmlns/>), |
69 |
|
|
}, |
70 |
|
|
XMLPREFIX_NONXMLNS_ERR => { |
71 |
|
|
-description => q(Namespace prefix "xml" cannot be used for namespace URI other than <http://www.w3.org/XML/1998/namespace>), |
72 |
|
|
}, |
73 |
|
|
}, |
74 |
|
|
}, |
75 |
wakaba |
1.1 |
}} # ___error_def |
76 |
|
|
|
77 |
|
|
package Message::IF::DOMException; |
78 |
wakaba |
1.2 |
push our @ISA, 'Message::Util::Error'; |
79 |
wakaba |
1.1 |
|
80 |
|
|
## DOM1 |
81 |
|
|
sub INDEX_SIZE_ERR () { 1 } |
82 |
|
|
sub DOMSTRING_SIZE_ERR () { 2 } |
83 |
|
|
sub HIERARCHY_REQUEST_ERR () { 3 } |
84 |
|
|
sub WRONG_DOCUMENT_ERR () { 4 } |
85 |
|
|
sub INVALID_CHARACTER_ERR () { 5 } |
86 |
|
|
sub NO_DATA_ALLOWED_ERR () { 6 } |
87 |
|
|
sub NO_MODIFICATION_ALLOWED_ERR () { 7 } |
88 |
|
|
sub NOT_FOUND_ERR () { 8 } |
89 |
|
|
sub NOT_SUPPORTED_ERR () { 9 } |
90 |
|
|
sub INUSE_ATTRIBUTE_ERR () { 10 } |
91 |
|
|
## DOM2 |
92 |
|
|
sub INVALID_STATE_ERR () { 11 } |
93 |
|
|
sub SYNTAX_ERR () { 12 } |
94 |
|
|
sub INVALID_MODIFICATION_ERR () { 13 } |
95 |
|
|
sub NAMESPACE_ERR () { 14 } |
96 |
|
|
sub INVALID_ACCESS_ERR () { 15 } |
97 |
|
|
## DOM3 |
98 |
|
|
sub VALIDATION_ERR () { 16 } |
99 |
|
|
sub TYPE_MISMATCH_ERR () { 17 } |
100 |
|
|
|
101 |
|
|
=head1 LICENSE |
102 |
|
|
|
103 |
|
|
Copyright 2007 Wakaba <w@suika.fam.cx> |
104 |
|
|
|
105 |
|
|
This program is free software; you can redistribute it and/or |
106 |
|
|
modify it under the same terms as Perl itself. |
107 |
|
|
|
108 |
|
|
=cut |
109 |
|
|
|
110 |
|
|
1; |
111 |
wakaba |
1.7 |
## $Date: 2007/07/07 07:36:58 $ |