line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Config::MVP::Error; |
2
|
|
|
|
|
|
|
# ABSTRACT: common exceptions class |
3
|
|
|
|
|
|
|
$Config::MVP::Error::VERSION = '2.200012'; |
4
|
4
|
|
|
4
|
|
30
|
use Moose; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
26
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has message => ( |
7
|
|
|
|
|
|
|
is => 'ro', |
8
|
|
|
|
|
|
|
isa => 'Str', |
9
|
|
|
|
|
|
|
required => 1, |
10
|
|
|
|
|
|
|
lazy => 1, |
11
|
|
|
|
|
|
|
default => sub { $_->ident }, |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub as_string { |
15
|
1
|
|
|
1
|
0
|
11723
|
my ($self) = @_; |
16
|
1
|
|
|
|
|
70
|
join qq{\n}, $self->message, "\n", $self->stack_trace; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
4
|
|
|
4
|
|
25912
|
use overload (q{""} => 'as_string'); |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
35
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
with( |
22
|
|
|
|
|
|
|
'Throwable', |
23
|
|
|
|
|
|
|
'Role::Identifiable::HasIdent', |
24
|
|
|
|
|
|
|
'Role::HasMessage', |
25
|
|
|
|
|
|
|
'StackTrace::Auto', |
26
|
|
|
|
|
|
|
'MooseX::OneArgNew' => { |
27
|
|
|
|
|
|
|
type => 'Str', |
28
|
|
|
|
|
|
|
init_arg => 'ident', |
29
|
|
|
|
|
|
|
}, |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
4
|
|
|
4
|
|
376
|
no Moose; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
39
|
|
33
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(inline_constructor => 0); |
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=pod |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=encoding UTF-8 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 NAME |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Config::MVP::Error - common exceptions class |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 VERSION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
version 2.200012 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 AUTHOR |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Ricardo Signes <rjbs@cpan.org> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This software is copyright (c) 2021 by Ricardo Signes. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
59
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=cut |