Open Bug 173626 Opened 19 years ago Updated 7 years ago

Clean up bugzilla error handling


(Bugzilla :: Bugzilla-General, enhancement)

Not set




(Reporter: bbaetz, Unassigned)



(1 file)

I'd like to begin using a real exception class to handle errors. This has some
minor problems, due to perl CORE bugs I've discovered while working on this.

The advantage is that we can get real stack traces/errors to the console.
CGI::Carp doesn't really work for us under mod_perl. This bug isn't a
requirement for mod_perl, though, esp since mod_perl 2 does errors-to-browser
stuff automatically.
I want to use Exception::Class for this, mainly because Exception::Class::DBI
exists, so we could then get useful dbi errors almost for free.
Attached patch really early cutSplinter Review
This won't work. It doesn't work. Its just here as a guide-type-thing for
QA Contact: mattyt-bugzilla → default-qa
(In reply to Bradley Baetz (:bbaetz) from comment #1)
> I want to use Exception::Class for this

The Exception::Class documentation recommends to not use it anymore but to use Try::Tiny instead:
Assignee: bbaetz → general
Severity: normal → enhancement
OS: Linux → All
Hardware: x86 → All
You need to log in before you can comment on or make changes to this bug.