System.Data.SqlClient.SqlException.InternalClone C# (CSharp) Method

InternalClone() private method

private InternalClone ( ) : SqlException
return SqlException
        internal SqlException InternalClone()
        {
            SqlException exception = new SqlException(Message, _errors, InnerException, _clientConnectionId);
            if (this.Data != null)
                foreach (DictionaryEntry entry in this.Data)
                    exception.Data.Add(entry.Key, entry.Value);
            exception._doNotReconnect = this._doNotReconnect;
            return exception;
        }