toString Summary Returns the string representation of the exception in the format: FQN: EXCEPTION MESSAGE Usage public override string toString() Returns The string representation of the exception. Description Returns the string representation of the exception in the format: FQN: EXCEPTION MESSAGE Examples Basic Usage 12345678import System; try { throw new System.Exception("This is a test.");}catch(System.Exception e) { Console.error(e); // "System.Exception: This is a test."} Share HTML | BBCode | Direct Link