Merge branch 'exception_interface'
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Exception / Interface.pm
CommitLineData
ede5238f 1package Catalyst::Exception::Interface;
2
80e287ba 3use MooseX::Role::WithOverloading;
4use namespace::clean -except => 'meta';
5
6use overload
7 q{""} => sub { $_[0]->as_string },
8 fallback => 1;
ede5238f 9
10requires qw/as_string throw rethrow/;
11
121;