Java how to catch ALL run time errors
<p>I've built a socket server which logs all it proccesses in a text file.</p>

<p>For now, the server runs in the background and has no UI. </p>

<p>Is there a way for me to catch ALL run time errors (not just the ones throwing exeptions) include null pointers etc. and log it to a file for monitoring?</p>
