1 |
wakaba |
1.1 |
package Message::DOM::DOMException; |
2 |
|
|
use strict; |
3 |
wakaba |
1.3 |
our $VERSION=do{my @r=(q$Revision: 1.2 $=~/\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 |
|
|
NO_MODIFICATION_ALLOWED_ERR => { |
9 |
|
|
-code => 7, |
10 |
|
|
-subtype => { |
11 |
wakaba |
1.3 |
READ_ONLY_NODE_ERR => { |
12 |
|
|
-description => q(Can't modify read-only node), |
13 |
|
|
}, |
14 |
wakaba |
1.1 |
READ_ONLY_NODE_LIST_ERR => { |
15 |
|
|
-description => q(Can't modify read-only node list), |
16 |
|
|
}, |
17 |
|
|
}, |
18 |
|
|
}, |
19 |
|
|
}} # ___error_def |
20 |
|
|
|
21 |
|
|
package Message::IF::DOMException; |
22 |
wakaba |
1.2 |
push our @ISA, 'Message::Util::Error'; |
23 |
wakaba |
1.1 |
|
24 |
|
|
## DOM1 |
25 |
|
|
sub INDEX_SIZE_ERR () { 1 } |
26 |
|
|
sub DOMSTRING_SIZE_ERR () { 2 } |
27 |
|
|
sub HIERARCHY_REQUEST_ERR () { 3 } |
28 |
|
|
sub WRONG_DOCUMENT_ERR () { 4 } |
29 |
|
|
sub INVALID_CHARACTER_ERR () { 5 } |
30 |
|
|
sub NO_DATA_ALLOWED_ERR () { 6 } |
31 |
|
|
sub NO_MODIFICATION_ALLOWED_ERR () { 7 } |
32 |
|
|
sub NOT_FOUND_ERR () { 8 } |
33 |
|
|
sub NOT_SUPPORTED_ERR () { 9 } |
34 |
|
|
sub INUSE_ATTRIBUTE_ERR () { 10 } |
35 |
|
|
## DOM2 |
36 |
|
|
sub INVALID_STATE_ERR () { 11 } |
37 |
|
|
sub SYNTAX_ERR () { 12 } |
38 |
|
|
sub INVALID_MODIFICATION_ERR () { 13 } |
39 |
|
|
sub NAMESPACE_ERR () { 14 } |
40 |
|
|
sub INVALID_ACCESS_ERR () { 15 } |
41 |
|
|
## DOM3 |
42 |
|
|
sub VALIDATION_ERR () { 16 } |
43 |
|
|
sub TYPE_MISMATCH_ERR () { 17 } |
44 |
|
|
|
45 |
|
|
=head1 LICENSE |
46 |
|
|
|
47 |
|
|
Copyright 2007 Wakaba <w@suika.fam.cx> |
48 |
|
|
|
49 |
|
|
This program is free software; you can redistribute it and/or |
50 |
|
|
modify it under the same terms as Perl itself. |
51 |
|
|
|
52 |
|
|
=cut |
53 |
|
|
|
54 |
|
|
1; |
55 |
wakaba |
1.3 |
## $Date: 2007/06/16 08:49:00 $ |