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