Tuesday, July 26, 2011

Catching Exceptions

catch(Exception ex)
{
    Object.LogErrorMessage("WTF? {0}\n\n{1}", ex.Message, ex.StackTrace);
}

Found this in a project at work today. Error handling at its finest.