A well-written piece of code should theoretically not throw
any exceptions. However, in practice it is almost impossible to test if an
application works under every situation. When errors occur, there are different
ways to handle them. This article discusses how to log exceptions in the Event
Log.