line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Lab::Exception::Base; |
2
|
|
|
|
|
|
|
#ABSTRACT: Exception base class |
3
|
|
|
|
|
|
|
$Lab::Exception::Base::VERSION = '3.881'; |
4
|
9
|
|
|
9
|
|
7160
|
use v5.20; |
|
9
|
|
|
|
|
35
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# This is for comfy optional adding of custom methods via our own exception base class later |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our @ISA = ("Exception::Class::Base"); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
#use Carp; |
13
|
9
|
|
|
9
|
|
4108
|
use Data::Dumper; |
|
9
|
|
|
|
|
41058
|
|
|
9
|
|
|
|
|
1730
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
0
|
|
|
0
|
1
|
|
my $proto = shift; |
17
|
0
|
|
0
|
|
|
|
my $class = ref($proto) || $proto; |
18
|
0
|
|
|
|
|
|
my $self = $class->SUPER::new(@_); |
19
|
0
|
|
|
|
|
|
$self->Trace(1); # Append stack trace to string representation by default |
20
|
0
|
|
|
|
|
|
return $self; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub full_message { |
24
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
return |
27
|
0
|
|
|
|
|
|
$self->message() |
28
|
|
|
|
|
|
|
. "\nFile: " |
29
|
|
|
|
|
|
|
. $self->file() |
30
|
|
|
|
|
|
|
. "\nPackage: " |
31
|
|
|
|
|
|
|
. $self->package() |
32
|
|
|
|
|
|
|
. "\nLine:" |
33
|
|
|
|
|
|
|
. $self->package() . "\n"; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=pod |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=encoding UTF-8 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 NAME |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Lab::Exception::Base - Exception base class |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 VERSION |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
version 3.881 |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
This software is copyright (c) 2023 by the Lab::Measurement team; in detail: |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Copyright 2014 Andreas K. Huettel |
57
|
|
|
|
|
|
|
2016 Simon Reinhardt |
58
|
|
|
|
|
|
|
2017 Andreas K. Huettel |
59
|
|
|
|
|
|
|
2020 Andreas K. Huettel |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
63
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=cut |