catch all program errors...



Im trying to find a quick way to catch all of my programs errors. These
would be the last remaining errors that are not currently caught in my
application,

for instance it would be a nullpointer exception - one that I never
expected to occur, so it was not caught. What I would like to do is to
catch any and all exceptions and log them in some way so that I can
update the program, and alert the user to the fact that an error had
occurred. The later I get, the catching all uncaught errors I am lost
with.

Any advice?

Thanks

.