use strict;
use base 'Catalyst::Engine::CGI::Base';
+use Catalyst::Exception;
use CGI;
our @compile = qw[
else {
my $class = ref($object);
- die( qq/Invalid argument $object/ );
+
+ Catalyst::Exception->throw(
+ message => qq/Unknown object '$object'/
+ );
}
}