1 |
wakaba |
1.1 |
package Message::DOM::DOMException; |
2 |
|
|
use strict; |
3 |
wakaba |
1.5 |
our $VERSION=do{my @r=(q$Revision: 1.4 $=~/\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.1 |
NO_MODIFICATION_ALLOWED_ERR => { |
13 |
|
|
-code => 7, |
14 |
|
|
-subtype => { |
15 |
wakaba |
1.3 |
READ_ONLY_NODE_ERR => { |
16 |
|
|
-description => q(Can't modify read-only node), |
17 |
|
|
}, |
18 |
wakaba |
1.1 |
READ_ONLY_NODE_LIST_ERR => { |
19 |
|
|
-description => q(Can't modify read-only node list), |
20 |
|
|
}, |
21 |
|
|
}, |
22 |
|
|
}, |
23 |
wakaba |
1.4 |
NOT_SUPPORTED_ERR => { |
24 |
|
|
-code => 9, |
25 |
|
|
-subtype => { |
26 |
wakaba |
1.5 |
CLONE_NODE_TYPE_NOT_SUPPORTED_ERR => { |
27 |
|
|
-description => q(Can't clone specified type of node), |
28 |
|
|
}, |
29 |
wakaba |
1.4 |
NON_HTML_OPERATION_ERR => { |
30 |
|
|
-description => q(Can't apply to HTML document), |
31 |
|
|
}, |
32 |
|
|
UNKNOWN_XML_VERSION_ERR => { |
33 |
|
|
-description => q(Specified version of XML is not supported), |
34 |
|
|
}, |
35 |
|
|
}, |
36 |
|
|
}, |
37 |
|
|
INUSE_ATTRIBUTE_ERR => { |
38 |
|
|
-code => 10, |
39 |
|
|
-description => q(Attribute is already in use), |
40 |
|
|
}, |
41 |
wakaba |
1.1 |
}} # ___error_def |
42 |
|
|
|
43 |
|
|
package Message::IF::DOMException; |
44 |
wakaba |
1.2 |
push our @ISA, 'Message::Util::Error'; |
45 |
wakaba |
1.1 |
|
46 |
|
|
## DOM1 |
47 |
|
|
sub INDEX_SIZE_ERR () { 1 } |
48 |
|
|
sub DOMSTRING_SIZE_ERR () { 2 } |
49 |
|
|
sub HIERARCHY_REQUEST_ERR () { 3 } |
50 |
|
|
sub WRONG_DOCUMENT_ERR () { 4 } |
51 |
|
|
sub INVALID_CHARACTER_ERR () { 5 } |
52 |
|
|
sub NO_DATA_ALLOWED_ERR () { 6 } |
53 |
|
|
sub NO_MODIFICATION_ALLOWED_ERR () { 7 } |
54 |
|
|
sub NOT_FOUND_ERR () { 8 } |
55 |
|
|
sub NOT_SUPPORTED_ERR () { 9 } |
56 |
|
|
sub INUSE_ATTRIBUTE_ERR () { 10 } |
57 |
|
|
## DOM2 |
58 |
|
|
sub INVALID_STATE_ERR () { 11 } |
59 |
|
|
sub SYNTAX_ERR () { 12 } |
60 |
|
|
sub INVALID_MODIFICATION_ERR () { 13 } |
61 |
|
|
sub NAMESPACE_ERR () { 14 } |
62 |
|
|
sub INVALID_ACCESS_ERR () { 15 } |
63 |
|
|
## DOM3 |
64 |
|
|
sub VALIDATION_ERR () { 16 } |
65 |
|
|
sub TYPE_MISMATCH_ERR () { 17 } |
66 |
|
|
|
67 |
|
|
=head1 LICENSE |
68 |
|
|
|
69 |
|
|
Copyright 2007 Wakaba <w@suika.fam.cx> |
70 |
|
|
|
71 |
|
|
This program is free software; you can redistribute it and/or |
72 |
|
|
modify it under the same terms as Perl itself. |
73 |
|
|
|
74 |
|
|
=cut |
75 |
|
|
|
76 |
|
|
1; |
77 |
wakaba |
1.5 |
## $Date: 2007/06/17 13:37:40 $ |