File Coverage

blib/lib/XML/SRS/Error.pm
Criterion Covered Total %
statement 1 3 33.3
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 2 4 50.0


line stmt bran cond sub pod time code
1              
2             package XML::SRS::Error;
3              
4 1     1   2059 use Moose;
  0            
  0            
5             use PRANG::Graph;
6             use Moose::Util::TypeConstraints;
7              
8             sub root_element { "Error" }
9              
10             has_attr "error_id" =>
11             is => "ro",
12             isa => "XML::SRS::UID",
13             required => 1,
14             xml_name => "ErrorId",
15             ;
16              
17             enum "XML::SRS::Error::Severity" =>
18             qw( alert crit err );
19              
20             has_attr "severity" =>
21             is => "ro",
22             isa => "XML::SRS::Error::Severity",
23             required => 1,
24             xml_name => "Severity",
25             ;
26              
27             has_attr "hint" =>
28             is => "ro",
29             isa => "XML::SRS::UID", # odd
30             required => 1,
31             xml_name => "Hint",
32             ;
33              
34             has_element "desc" =>
35             is => "ro",
36             isa => "Str",
37             xml_nodeName => "Description",
38             ;
39              
40             has_element "details" =>
41             is => "ro",
42             isa => "ArrayRef[Str]",
43             xml_min => 0,
44             xml_nodeName => "ErrorDetails",
45             auto_deref => 1,
46             ;
47              
48             with 'XML::SRS::ActionResponse';
49              
50             1;