File Coverage

blib/lib/Stancer/Exceptions/Http/InternalServerError.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 Stancer::Exceptions::Http::InternalServerError;
2              
3 6     6   243967 use 5.020;
  6         71  
4 6     6   39 use strict;
  6         12  
  6         187  
5 6     6   32 use warnings;
  6         14  
  6         470  
6              
7             # ABSTRACT: HTTP 500 - Internal Server Error
8             our $VERSION = '1.0.3'; # VERSION
9              
10 6     6   491 use Moo;
  6         6963  
  6         36  
11              
12             extends 'Stancer::Exceptions::Http::ServerSide';
13              
14 6     6   5102 use namespace::clean;
  6         12481  
  6         59  
15              
16             1;
17              
18             __END__
19              
20             =pod
21              
22             =encoding UTF-8
23              
24             =head1 NAME
25              
26             Stancer::Exceptions::Http::InternalServerError - HTTP 500 - Internal Server Error
27              
28             =head1 VERSION
29              
30             version 1.0.3
31              
32             =head1 USAGE
33              
34             =head2 Logging
35              
36              
37              
38             We use the L<Log::Any> framework for logging events.
39             You may tell where it should log using any available L<Log::Any::Adapter> module.
40              
41             For example, to log everything to a file you just have to add a line to your script, like this:
42             #! /usr/bin/env perl
43             use Log::Any::Adapter (File => '/var/log/payment.log');
44             use Stancer::Exceptions::Http::InternalServerError;
45              
46             You must import C<Log::Any::Adapter> before our libraries, to initialize the logger instance before use.
47              
48             You can choose your log level on import directly:
49             use Log::Any::Adapter (File => '/var/log/payment.log', log_level => 'info');
50              
51             Read the L<Log::Any> documentation to know what other options you have.
52              
53             =cut
54              
55             =head1 SECURITY
56              
57             =over
58              
59             =item *
60              
61             Never, never, NEVER register a card or a bank account number in your database.
62              
63             =item *
64              
65             Always uses HTTPS in card/SEPA in communication.
66              
67             =item *
68              
69             Our API will never give you a complete card/SEPA number, only the last four digits.
70             If you need to keep track, use these last four digit.
71              
72             =back
73              
74             =cut
75              
76             =head1 BUGS
77              
78             Please report any bugs or feature requests on the bugtracker website
79             L<https://gitlab.com/wearestancer/library/lib-perl/-/issues> or by email to
80             L<bug-stancer@rt.cpan.org|mailto:bug-stancer@rt.cpan.org>.
81              
82             When submitting a bug or request, please include a test-file or a
83             patch to an existing test-file that illustrates the bug or desired
84             feature.
85              
86             =head1 AUTHOR
87              
88             Joel Da Silva <jdasilva@cpan.org>
89              
90             =head1 COPYRIGHT AND LICENSE
91              
92             This software is Copyright (c) 2018-2024 by Stancer / Iliad78.
93              
94             This is free software, licensed under:
95              
96             The Artistic License 2.0 (GPL Compatible)
97              
98             =cut