/// <summary> /// Appends to existing InteractionError /// </summary> /// <param name="id">Id of the Error. It replaces existing id only if the existing Id is ErrorsIds.UNINITIALIZED</param> /// <param name="description">| delimiter is Appended to existing description, followed by value of this parameter</param> public void Append(ErrorsIds id, string description) { if (this.ID == ErrorsIds.UNINITIALIZED) //Get the new one, otherwise keep the original { this.ID = id; } this.Description = UTILS.ConcatenateWithDelimiters("|", this.Description, description); }
/// <summary> /// Appends to existing InteractionError /// </summary> /// <param name="id">Id of the Error. It replaces existing id only if the existing Id is ErrorsIds.UNINITIALIZED</param> /// <param name="description">| delimiter is Appended to existing description, followed by value of this parameter</param> public void Append(ErrorsIds id,string description){ if(this.ID==ErrorsIds.UNINITIALIZED){//Get the new one, otherwise keep the original this.ID=id; } this.Description=UTILS.ConcatenateWithDelimiters("|",this.Description,description); }
/// <summary> /// Creates new InteractionError object based on one of predefined error ID and description of what has happened /// </summary> /// <param name="id">One of predefined IDs</param> /// <param name="description">Error Description</param> public InteractionError(ErrorsIds id, string description) { ID = id; Description = description; }
/// <summary> /// Creates new InteractionError object based on one of predefined error ID and description of what has happened /// </summary> /// <param name="id">One of predefined IDs</param> /// <param name="description">Error Description</param> public InteractionError(ErrorsIds id,string description){ ID=id;Description=description; }