Koha::REST::Plugin::Exceptions
try {
...
}
catch {
if ( know_exception ) {
handle_known_exception($_);
}
$c->unhandled_exception($_);
}
Provides a generic and reusable way to throw unhandled exceptions. This way we can centralize the behaviour control (e.g. production vs. development environmet)