projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add a message attribute to Exception::Base.
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Exception.pm
diff --git
a/lib/Catalyst/Exception.pm
b/lib/Catalyst/Exception.pm
index
d50adf9
..
2af5ed0
100644
(file)
--- 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] ) : @_;