Fixed error in DebugMessage class.
Updated existing throw new Exception() calls.