public OracleDataStoreErrorEvent(string msg, OracleCommand cmd, OracleDataStoreException ex) : base(msg, ex, WebEventCodes.WebExtendedBase + 1, ex) { _sb = new StringBuilder(); if (cmd != null) { if (cmd.Connection != null) { _sb.AppendFormat("Connection DataSource {0}; Host Name: {1}; State: {2}", cmd.Connection.DataSource, cmd.Connection.HostName, cmd.Connection.State); } _sb.AppendLine(cmd.CommandText); foreach (OracleParameter param in cmd.Parameters) { _sb.AppendFormat("{0} ({1} {2}: *{3}*)", param.ParameterName, param.Direction, param.OracleDbType, param.Value); _sb.AppendLine(); } } }