As a C# developer I\'m used to the following style of exception handling:
try { throw SomeException(\"hahahaha!\"); } catch (Exception ex) { Log(ex.T
You can use logging tools like Yahoo! UI Library - Logger to log the errors/informative messages.