line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Exception.pm,v 1.6 2006/06/16 15:20:56 tonyb Exp $ |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Copyright (c) 2002-2005 Cunningham & Cunningham, Inc. |
4
|
|
|
|
|
|
|
# Released under the terms of the GNU General Public License version 2 or later. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# Written by Tony Byrne |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package Test::C2FIT::Exception; |
9
|
|
|
|
|
|
|
|
10
|
4
|
|
|
4
|
|
3515
|
use Error qw( :try ); |
|
4
|
|
|
|
|
24293
|
|
|
4
|
|
|
|
|
25
|
|
11
|
4
|
|
|
4
|
|
843
|
use base 'Error::Simple'; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
6758
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub getMessage { |
14
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
15
|
0
|
|
|
|
|
|
my $message = $self->stringify(); |
16
|
0
|
|
|
|
|
|
chomp $message; |
17
|
0
|
|
|
|
|
|
return $message; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# Keep Perl happy. |
21
|
|
|
|
|
|
|
1; |