ThrowCodeError vs ThrowUserError

John P. Fisher john.fisher at znyx.com
Thu Apr 15 15:18:51 UTC 2004


 From Mr. Peanut:    ;>)

"Bugzilla has suffered an internal error" sounds like Hal 9000, and we all 
know what happened to him, errrr  ummmm, it.
I think the difference between the two types of error message is mis-defined:

User errors should first and foremost direct the user to redoing the 
mistake in a correct way
i.e. "Please go back and try again, maybe you mistyped?"
"Bugzilla requires a six-character password, please try again"
"You aren't configured to change products. Ask your administrator 
<youradmin at yourshop.com> for help."

Code errors should direct the developers to the actual problem so it can be 
addressed:
"Bugzilla::MySub failed to get argument 3, here are arg1 arg2"
"SendSQL returned a SQL error  $@ "

thanks
John


At 01:23 AM 4/15/2004, you wrote:
>David Miller wrote:
>
>>Thoughts from the peanut gallery?
>
>OK, this flowed well, but it's not what I meant. :)  Everyone's opinion is 
>important. :)  (At least until we make a final decision on it :)
>
>--
>Dave Miller      Project Leader, Bugzilla Bug Tracking System
>http://www.justdave.net/             http://www.bugzilla.org/
>-
>To view or change your list settings, click here:
><http://bugzilla.org/cgi-bin/mj_wwwusr?user=john.fisher@znyx.com>

John P. Fisher
at ZNYX Networks
805  683 1488  x 3245
john.fisher at znyx.com




More information about the developers mailing list