Where should I handle fatal exceptions

Posted by Puckl on Programmers See other posts from Programmers or by Puckl
Published on 2012-10-03T12:35:43Z Indexed on 2012/10/03 15:50 UTC
Read the original article Hit count: 280

For example, I have a controller that loads a file and hands it over to the processing. Should I handle the exception in the file loader and return Null if something is wrong, or should I throw the exception and handle it in the controller? Without the file the rest of the program can´t work. Where should I handle a exception that shuts down the program properly?

I want to shut down an Android application properly.

© Programmers or respective owner

Related posts about exceptions

Related posts about exception-handling