[android-developers] Re: fatal_error
bob wrote:
I decided to do this for the time being:public class Error_Handler {
The Java coding convention call for camel-case type names that begin
with an upper-case letter and have no underscores.
public static void fatal_error(String err)
The Java coding conventions call for camel-case method names that begin
with a lower-case letter and have no underscores.
{Log.e("fatal error", err);System.exit(1);
Bad.
Messy.
Inelegant.
}}
You should protect the user from invalid program states, like the crash you
deliberately programmed in here.
I've never understood the philosophy of intentionally crashing a program
on your user. It's unkind and bad business.
--
Lew
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home