From: Florian Ragwitz Date: Fri, 26 Jun 2009 15:26:56 +0000 (+0000) Subject: Add a message attribute to Exception::Base. X-Git-Tag: 5.80006~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=9ffa230b1a3ee90dc052dddb01e950f88f7937cb Add a message attribute to Exception::Base. --- diff --git a/lib/Catalyst/Exception.pm b/lib/Catalyst/Exception.pm index d50adf9..2af5ed0 100644 --- a/lib/Catalyst/Exception.pm +++ b/lib/Catalyst/Exception.pm @@ -34,6 +34,11 @@ Throws a fatal exception. =cut +has message => ( + is => 'ro', + isa => 'Str', +); + sub throw { my $class = shift; my %params = @_ == 1 ? ( error => $_[0] ) : @_;