Subject: | TryCatch forces you to capture your exception in a variable |
eg; this doesn't work:
try { ... }
catch (MyApp::Exception::CantLock) {
$log->error("Can't lock output, skipped.");
next OUTPUT;
}
instead, I have to:
try { ... }
catch (MyApp::Exception::CantLock $e) {
$log->error("Can't lock output, skipped.");
next OUTPUT;
}
... even though I dont care about '$e'.