File Coverage

blib/lib/W3C/SOAP/Exception.pm
Criterion Covered Total %
statement 30 30 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod n/a
total 40 40 100.0


line stmt bran cond sub pod time code
1             package W3C::SOAP::Exception;
2 1     1   5 use Moose;
  1         2  
  1         6  
3 1     1   5123 use warnings;
  1         2  
  1         120  
4             extends 'MooseX::Exception::Base';
5              
6             our $VERSION = version->new('0.11');
7              
8             has '+_verbose' => (
9             default => 2,
10             );
11             has faultcode => (
12             is => 'rw',
13             isa => 'Maybe[Str]',
14             );
15             has faultstring => (
16             is => 'rw',
17             isa => 'Maybe[Str]',
18             traits => [qw{MooseX::Exception::Stringify}],
19             );
20             has faultactor => (
21             is => 'rw',
22             isa => 'Maybe[Str]',
23             );
24             has detail => (
25             is => 'rw',
26             isa => 'Maybe[Str]',
27             traits => [qw{MooseX::Exception::Stringify}],
28             );
29              
30             package W3C::SOAP::Exception::HTTP;
31 1     1   5 use Moose;
  1         1  
  1         6  
32 1     1   4797 use warnings;
  1         1  
  1         60  
33             extends 'W3C::SOAP::Exception';
34              
35             our $VERSION = version->new('0.11');
36              
37             package W3C::SOAP::Exception::XML;
38 1     1   5 use Moose;
  1         1  
  1         4  
39 1     1   4766 use warnings;
  1         3  
  1         77  
40             extends 'W3C::SOAP::Exception';
41              
42             our $VERSION = version->new('0.11');
43              
44             has '+detail' => ( default => 'XML', stringify_pre => 'Type : ' );
45              
46             package W3C::SOAP::Exception::Doomed;
47 1     1   4 use Moose;
  1         2  
  1         4  
48 1     1   4670 use warnings;
  1         2  
  1         60  
49             extends 'W3C::SOAP::Exception';
50              
51             our $VERSION = version->new('0.11');
52              
53             package W3C::SOAP::Exception::BadInput;
54 1     1   5 use Moose;
  1         2  
  1         4  
55 1     1   4548 use warnings;
  1         2  
  1         160  
56             extends 'MooseX::Exception::Base';
57              
58             our $VERSION = version->new('0.11');
59              
60             has param => (
61             is => 'rw',
62             isa => 'Str',
63             );
64             has message => (
65             is => 'rw',
66             isa => 'Str',
67             traits => [qw{MooseX::Exception::Stringify}],
68             );
69              
70              
71             1;
72              
73             __END__
74              
75             =head1 NAME
76              
77             W3C::SOAP::Exception - Exceptions for SOAP Clients etc
78              
79             =head1 SYNOPSIS
80              
81             use W3C::SOAP::Exception;
82              
83             =head1 DESCRIPTION
84              
85             Exceptions thrown by L<W3C::SOAP> objects.
86              
87             =head1 ALSO SEE
88              
89             L<Exception::Class>
90              
91             =cut