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