[Koha-bugs] [Bug 13995] Proper Exception handling
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Apr 19 16:42:10 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13995
Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #37827|0 |1
is obsolete| |
--- Comment #3 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Created attachment 38131
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38131&action=edit
Bug 13995 - Proper Exception handling
try {
Koha::Exception::BadSystemPreference->throw(error => 'Syspref
DisplayIconsXSLT is not a valid boolean');
} catch {
if (blessed($_) && $_->isa('Koha::Exception::BadSystemPreference')) {
print $_->as_string();
warn $_->error, "\n", $_->trace->as_string, "\n";
}
else {
$_->rethrow();
}
}
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list