internal VistaDBException(string message, VistaDBErrorCodes error) : base(message) { this.arrayList = new ArrayList(); this.arrayList.Add(error); this.critical = true; this.result = null; }
/// <summary> /// Return True is pointed error code present /// </summary> /// <param name="errorCode">Error code</param> /// <returns>True is pointed error code present</returns> public bool IsErrorCodePresent(VistaDBErrorCodes errorCode) { bool res = false; if (arrayList != null) { for (int i = 0; i < arrayList.Count; i++) { if (((VistaDBErrorStruct)arrayList[i]).errorCode == errorCode) { res = true; break; } } } return(res); }
/// <summary> /// Return True is pointed error code present /// </summary> /// <param name="errorCode">Error code</param> /// <returns>True is pointed error code present</returns> public bool IsErrorCodePresent(VistaDBErrorCodes errorCode) { bool res = false; if(arrayList != null) { for(int i = 0; i < arrayList.Count; i++) { if( ((VistaDBErrorStruct)arrayList[i]).errorCode == errorCode ) { res = true; break; } } } return res; }
internal VistaDBException(string message, VistaDBErrorCodes error): base(message) { this.arrayList = new ArrayList(); this.arrayList.Add(error); this.critical = true; this.result = null; }
internal VistaDBException(VistaDBErrorCodes error): base(VistaDBErrorMsgs.Errors[(int)error]) { this.arrayList = null; this.critical = true; this.result = null; }
internal VistaDBException(VistaDBErrorCodes error) : base(VistaDBErrorMsgs.Errors[(int)error]) { this.arrayList = null; this.critical = true; this.result = null; }