[android-developers] Re: fatal_error
Depends on what you're trying to accomplish. Normally an uncaught exception will just terminate your app anyways, so there's no need for fatal_error type stuff. If the error comes from code that doesn't throw, you can just throw your own exception; no need to kill the process. That way, you also get the benefit of on-the-field reports via Android's error handler.
On Thursday, September 6, 2012 11:29:45 AM UTC-4, bob wrote:
--Back in the day, when I used to program Windows and other systems, I had a function like this:
void fatal_error(char *msg)
{
cout << msg << endl;
exit(1);
}
Is there an easy way to make something similarly elegant and useful in Android?
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