[Templates-cvs] cvs commit: TT3/lib/Template Context.pm
cvs@template-toolkit.org
cvs@template-toolkit.org
Sun, 12 Dec 2004 16:22:35 +0000
cvs 04/12/12 16:22:35
Modified: lib/Template Context.pm
Log:
* changed exception re-throw code in catch() to use new named
parameters for Template::Exception
Revision Changes Path
1.10 +6 -4 TT3/lib/Template/Context.pm
Index: Context.pm
===================================================================
RCS file: /template-toolkit/TT3/lib/Template/Context.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Context.pm 2004/12/12 16:12:45 1.9
+++ Context.pm 2004/12/12 16:22:35 1.10
@@ -16,7 +16,7 @@
# modify it under the same terms as Perl itself.
#
# REVISION
-# $Id: Context.pm,v 1.9 2004/12/12 16:12:45 abw Exp $
+# $Id: Context.pm,v 1.10 2004/12/12 16:22:35 abw Exp $
#
#========================================================================
@@ -38,7 +38,7 @@
use constant FETCH => 'fetch';
use constant GET => 'get';
-our $VERSION = sprintf("%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/);
+our $VERSION = sprintf("%d.%02d", q$Revision: 1.10 $ =~ /(\d+)\.(\d+)/);
our $DEBUG = 0 unless defined $DEBUG;
our $ERROR = '';
our $THROW = 'context';
@@ -150,7 +150,9 @@
}
else {
# TODO: call throw() instead
- return $EXCEPTION->new('undef', $error, $output);
+ return $EXCEPTION->new( type => 'undef',
+ info => $error,
+ text => $output );
}
}
@@ -271,7 +273,7 @@
=head1 VERSION
-$Revision: 1.9 $
+$Revision: 1.10 $
=head1 COPYRIGHT