private static AdsErrorException CreateException(string message, AdsErrorCode adsErrorCode) { if (adsErrorCode == AdsErrorCode.NoError) { throw new ArgumentException("No error indicated!", "adsErrorCode"); } return(new AdsErrorException(ResMan.GetString(message, adsErrorCode), adsErrorCode)); }
public AdsDatatypeNotSupportedException() : base(ResMan.GetString("AdsDataTypeNotSupported_Message")) { }
public RpcMethodNotSupportedException(int vTableIndex, ITcAdsSymbol symbol) : base(string.Format(ResMan.GetString("RpcMethodNotSupported_Message2"), vTableIndex, symbol.Name), symbol) { }
public RpcMethodNotSupportedException(string methodName, ITcAdsSymbol symbol) : base(string.Format(ResMan.GetString("RpcMethodNotSupported_Message"), methodName, symbol.Name), symbol) { }
internal AdsInvalidNotificationException(int handle, long timeStamp) : base(string.Format(ResMan.GetString("AdsInvalidNotification_Message1"), handle)) { this._handle = handle; this._timeStamp = timeStamp; }
public AdsErrorException(string message, AdsErrorCode errorCode) : base(ResMan.GetString(message, errorCode)) { this._errorCode = errorCode; }