projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
a80247c
)
Add a message attribute to Exception::Base.
Florian Ragwitz [Fri, 26 Jun 2009 15:26:56 +0000 (15:26 +0000)]
lib/Catalyst/Exception.pm
patch
|
blob
|
blame
|
history
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] ) : @_;