internal void RemoveException(QAException exception) { if (exception == null) return; try { for (int i = 0; i < this._exceptions.Length; i++) if (exception.Equals(this._exceptions[i])) { this._exceptions[i] = null; break; } IFeature theExceptionFeature = this._exceptionFC.GetFeature(exception.ObjectID); theExceptionFeature.Delete(); } catch (Exception) {} }
internal void AddException(QAError error, string exceptionalStatus) { QAException theNewException = new QAException(error, this._operationalDSName, exceptionalStatus); theNewException.Store(this._exceptionFC); bool bStored = false; for (int i = 0; i < this._exceptions.Length; i++) { if (this._exceptions[i] == null) { this._exceptions[i] = theNewException; bStored = true; break; } } // Need to grow the array if (!bStored) { QAException[] theNewArray = new QAException[this._exceptions.Length + 10]; for (int j = 0; j < this._exceptions.Length; j++) theNewArray[j] = this._exceptions[j]; theNewArray[this._exceptions.Length] = theNewException; this._exceptions = theNewArray; } }