public override string ToString() { if (_rootCause != null) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); Runtime.PrintStackTrace(_rootCause, pw); return base.ToString() + "\n" + sw; } return base.ToString(); } }