| 1 | package Lab::Exception::Base; | ||||||||||||||||||||
| 2 | #ABSTRACT: Exception base class | ||||||||||||||||||||
| 3 | 9 | $Lab::Exception::Base::VERSION = '3.881'; | |||||||||||||||||||
| 4 | 9 | ▶ | use v5.20; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | # | ||||||||||||||||||||
| 7 | # This is for comfy optional adding of custom methods via our own exception base class later | ||||||||||||||||||||
| 8 | # | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 9 | our @ISA = ("Exception::Class::Base"); | |||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | #use Carp; | ||||||||||||||||||||
| 13 | 9 | ▶ | use Data::Dumper; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | sub new { | ||||||||||||||||||||
| 16 | 0 | ▶ | my $proto = shift; | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 17 | 0 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition0%0/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table0%0/3
A || B
A= ref $protoB= $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 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
full_message: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 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 | 9 | 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 | ||||||||||||||||||||