| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Pod::WSDL::Fault; |
|
2
|
8
|
|
|
8
|
|
15758
|
use strict; |
|
|
8
|
|
|
|
|
10
|
|
|
|
8
|
|
|
|
|
236
|
|
|
3
|
8
|
|
|
8
|
|
27
|
use warnings; |
|
|
8
|
|
|
|
|
9
|
|
|
|
8
|
|
|
|
|
162
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
8
|
|
|
8
|
|
337
|
use Pod::WSDL::AUTOLOAD; |
|
|
8
|
|
|
|
|
7
|
|
|
|
8
|
|
|
|
|
1647
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = "0.05"; |
|
8
|
|
|
|
|
|
|
our @ISA = qw/Pod::WSDL::AUTOLOAD/; |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our %FORBIDDEN_METHODS = ( |
|
11
|
|
|
|
|
|
|
type => {get => 1, set => 0}, |
|
12
|
|
|
|
|
|
|
descr => {get => 1, set => 0}, |
|
13
|
|
|
|
|
|
|
wsdlName => {get => 1, set => 0}, |
|
14
|
|
|
|
|
|
|
); |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub new { |
|
17
|
8
|
|
|
8
|
1
|
1275
|
my ($pkg, $str) = @_; |
|
18
|
|
|
|
|
|
|
|
|
19
|
8
|
|
100
|
|
|
21
|
$str ||= '' ; # avoid warnings here, will die soon |
|
20
|
8
|
100
|
|
|
|
55
|
$str =~ s/^\s*_FAULT\s*//i or die "_FAULT statements must have structure '_FAULT ', like '_FAULT My::Fault This is my documentation'"; |
|
21
|
6
|
|
|
|
|
49
|
my ($type, $descr) = split /\s+/, $str, 2; |
|
22
|
|
|
|
|
|
|
|
|
23
|
6
|
|
|
|
|
7
|
my $wsdlName = $type; |
|
24
|
6
|
|
|
|
|
22
|
$wsdlName =~ s/::(.)/uc $1/eg; |
|
|
6
|
|
|
|
|
16
|
|
|
25
|
|
|
|
|
|
|
|
|
26
|
6
|
|
100
|
|
|
15
|
$descr ||= ''; |
|
27
|
|
|
|
|
|
|
|
|
28
|
6
|
|
|
|
|
34
|
bless { |
|
29
|
|
|
|
|
|
|
_type => $type, |
|
30
|
|
|
|
|
|
|
_descr => $descr, |
|
31
|
|
|
|
|
|
|
_wsdlName => ucfirst $wsdlName, |
|
32
|
|
|
|
|
|
|
}, $pkg; |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
|
36
|
|
|
|
|
|
|
__END__ |