Add a message attribute to Exception::Base.
Florian Ragwitz [Fri, 26 Jun 2009 15:26:56 +0000 (15:26 +0000)]
lib/Catalyst/Exception.pm

index d50adf9..2af5ed0 100644 (file)
@@ -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] ) : @_;