| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Catalyst::Plugin::ErrorCatcher::Plugin::CleanUp::CaughtException; |
|
2
|
|
|
|
|
|
|
$Catalyst::Plugin::ErrorCatcher::Plugin::CleanUp::CaughtException::VERSION = '0.0.8.18'; |
|
3
|
|
|
|
|
|
|
{ |
|
4
|
|
|
|
|
|
|
$Catalyst::Plugin::ErrorCatcher::Plugin::CleanUp::CaughtException::DIST = 'Catalyst-Plugin-ErrorCatcher'; |
|
5
|
|
|
|
|
|
|
} |
|
6
|
9
|
|
|
9
|
|
18597
|
use strict; |
|
|
9
|
|
|
|
|
21
|
|
|
|
9
|
|
|
|
|
463
|
|
|
7
|
9
|
|
|
9
|
|
56
|
use warnings; |
|
|
9
|
|
|
|
|
11
|
|
|
|
9
|
|
|
|
|
1486
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub tidy_message { |
|
10
|
28
|
|
|
28
|
1
|
79
|
my $plugin = shift; |
|
11
|
28
|
|
|
|
|
54
|
my $errstr_ref = shift; |
|
12
|
|
|
|
|
|
|
|
|
13
|
28
|
|
|
|
|
48
|
${$errstr_ref} =~ s{ |
|
|
28
|
|
|
|
|
479
|
|
|
14
|
|
|
|
|
|
|
Caught\s+exception\s+in\s+ |
|
15
|
|
|
|
|
|
|
\S+\s+ |
|
16
|
|
|
|
|
|
|
" |
|
17
|
|
|
|
|
|
|
(.+?) |
|
18
|
|
|
|
|
|
|
\s+at\s+ |
|
19
|
|
|
|
|
|
|
\S+ |
|
20
|
|
|
|
|
|
|
\s+ |
|
21
|
|
|
|
|
|
|
line |
|
22
|
|
|
|
|
|
|
\s+ |
|
23
|
|
|
|
|
|
|
.* |
|
24
|
|
|
|
|
|
|
" |
|
25
|
|
|
|
|
|
|
$ |
|
26
|
|
|
|
|
|
|
}{$1}xmsg; |
|
27
|
|
|
|
|
|
|
|
|
28
|
28
|
|
|
|
|
108
|
$errstr_ref; |
|
29
|
|
|
|
|
|
|
} |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
|
32
|
|
|
|
|
|
|
# ABSTRACT: cleanup caught exception messages from Pg |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=pod |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding UTF-8 |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Catalyst::Plugin::ErrorCatcher::Plugin::CleanUp::CaughtException - cleanup caught exception messages from Pg |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 VERSION |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
version 0.0.8.18 |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 tidy_message($self, $stringref) |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Tidy up Postgres messages where the error is related to a I<Caught exception>. |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 AUTHOR |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Chisel <chisel@chizography.net> |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Chisel Wright. |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
61
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |