public String toString() {String dsc = null;switch (this.type) {case TYPE_UNDERFLOW:dsc = "UNDERFLOW error";break;case TYPE_OVERFLOW:dsc = "OVERFLOW error";break;case TYPE_UNMAPPABLE_CHAR:dsc = "Unmappable-character error with erroneous input length "+ this.length;break;case TYPE_MALFORMED_INPUT:dsc = "Malformed-input error with erroneous input length "+ this.length;break;default:dsc = "";break;}return getClass().getName() + "[" + dsc + "]";}
public override string ToString(){string dsc = null;switch (this.type){case TYPE_UNDERFLOW:{dsc = "UNDERFLOW error";break;}case TYPE_OVERFLOW:{dsc = "OVERFLOW error";break;}case TYPE_UNMAPPABLE_CHAR:{dsc = "Unmappable-character error with erroneous input length " + this._length;break;}case TYPE_MALFORMED_INPUT:{dsc = "Malformed-input error with erroneous input length " + this._length;break;}default:{dsc = string.Empty;break;}}return GetType().FullName + "[" + dsc + "]";}