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