File Coverage

blib/lib/WWW/NOS/Open/Exceptions.pm
Criterion Covered Total %
statement 14 14 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 19 19 100.0


line stmt bran cond sub pod time code
1             package WWW::NOS::Open::Exceptions 0.101; # -*- cperl; cperl-indent-level: 4 -*-
2 5     5   31 use strict;
  5         11  
  5         147  
3 5     5   25 use warnings;
  5         9  
  5         149  
4              
5 5     5   54 use utf8;
  5         12  
  5         36  
6 5     5   173 use 5.014000;
  5         15  
7              
8 5         49 use Exception::Class qw(
9             NOSOpenInternalServerErrorException
10             NOSOpenBadRequestException
11             NOSOpenUnauthorizedException
12             NOSOpenForbiddenException
13             NOSOpenExceededRangeException
14 5     5   28 );
  5         11  
15              
16             1;
17              
18             __END__
19              
20             =encoding utf8
21              
22             =for stopwords Ipenburg MERCHANTABILITY
23              
24             =head1 NAME
25              
26             WWW::NOS::Open::Exceptions - exception information for the Open NOS REST API.
27              
28             =head1 VERSION
29              
30             This document describes WWW::NOS::Open::Exceptions version 0.101.
31              
32             =head1 SYNOPSIS
33              
34             use WWW::NOS::Open::Exceptions;
35             NOSOpenInternalServerErrorException->throw( 'error' => $ERR );
36             NOSOpenBadRequestException->throw( 'error' => $ERR );
37             NOSOpenUnauthorizedException->throw( 'error' => $ERR );
38             NOSOpenForbiddenException->throw( 'error' => $ERR );
39             NOSOpenExceededRangeException->throw( 'error' => $ERR );
40              
41             =head1 DESCRIPTION
42              
43             Provides C<NOSOpenInternalServerErrorException>,
44             C<NOSOpenBadRequestException>, C<NOSOpenUnauthorizedException> and
45             C<NOSOpenForbiddenException> exception classes based on
46             L<Exception::Class::Base|Exception::Class::Base>.
47              
48             =head1 SUBROUTINES/METHODS
49              
50             All inherited from L<Exception::Class::Base|Exception::Class::Base/METHODS>.
51              
52             =head1 CONFIGURATION AND ENVIRONMENT
53              
54             =head1 DEPENDENCIES
55              
56             =over 4
57              
58             =item * L<Exception::Class|Exception::Class>
59              
60             =back
61              
62             =head1 INCOMPATIBILITIES
63              
64             =head1 DIAGNOSTICS
65              
66             =head1 BUGS AND LIMITATIONS
67              
68             Please report any bugs or feature requests at
69             L<RT for rt.cpan.org|https://rt.cpan.org/Dist/Display.html?Queue=WWW-NOS-Open>.
70              
71             =head1 AUTHOR
72              
73             Roland van Ipenburg, E<lt>ipenburg@xs4all.nlE<gt>
74              
75             =head1 LICENSE AND COPYRIGHT
76              
77             Copyright 2012 by Roland van Ipenburg
78              
79             This library is free software; you can redistribute it and/or modify
80             it under the same terms as Perl itself, either Perl version 5.14.0 or,
81             at your option, any later version of Perl 5 you may have available.
82              
83             =head1 DISCLAIMER OF WARRANTY
84              
85             BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
86             FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
87             OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
88             PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
89             EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
90             WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
91             ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
92             YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
93             NECESSARY SERVICING, REPAIR, OR CORRECTION.
94              
95             IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
96             WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
97             REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE
98             LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
99             OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
100             THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
101             RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
102             FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
103             SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
104             SUCH DAMAGES.
105              
106             =cut