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