| 1 | package Finance::Bank::Wachovia::ErrorHandler; | ||||||||||
| 2 | 8 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 8 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 8 | our $ERROR; | |||||||||
| 6 | 8 | our @ATTRIBUTES = qw/message/; # just for those that inherit | |||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 9 | 0 | my $class = shift; | |||||||||
| 10 | 0 | my $self = []; | |||||||||
| 11 | 0 | bless $self, $class; | |||||||||
| 12 | 0 | return $self; | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | 3 | ▶ | sub Error { | ||||||||
|
Subroutine
Error: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 16 | 3 | my $self = shift; | |||||||||
| 17 | 3 | ▶ | if( ref $self ){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 2 | $self->[0] = shift; | |||||||||
| 19 | } | ||||||||||
| 20 | else{ | ||||||||||
| 21 | 1 | $ERROR = shift; | |||||||||
| 22 | } | ||||||||||
| 23 | 3 | return undef; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 2 | ▶ | sub ErrStr { | ||||||||
|
Subroutine
ErrStr: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 27 | 2 | my $self = shift; | |||||||||
| 28 | 2 | ▶ | return ref $self ? $self->[0] : $ERROR; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | __END__ | ||||||||||