Detect redispatch exceptions by a class check, not by checking the exception message.
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Exception.pm
index 0ee0fa0..b5b5bc3 100644 (file)
@@ -39,7 +39,9 @@ has message => (
     isa => 'Str',
 );
 
-use overload q{""} => \&as_string;
+use overload
+    q{""}    => \&as_string,
+    fallback => 1;
 
 sub as_string {
     my ($self) = @_;