What is the better way to handle exceptions if I need to transfer them to UI. What I need to use: throwing Checked/Unchecked(which from them is better) through several methods to UI to show to user an appropriate message or return error code from method to method to UI or maybe something else?
UPDATED:
Does it good idea to use Android 's Handler to handle all checked/unchecked (maybe only on of them) exceptions that I don't know what to do with them in place where they appear?
for example
...
catch(NUllPointerException){
UIExceptionHandler.sendEmptyMessage(...);
}
...
onHandleMessage(...){
//handle exception here - for example show toast
}
?