Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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)
 {
 }
Exemplo n.º 5
0
 internal AdsInvalidNotificationException(int handle, long timeStamp) : base(string.Format(ResMan.GetString("AdsInvalidNotification_Message1"), handle))
 {
     this._handle    = handle;
     this._timeStamp = timeStamp;
 }
Exemplo n.º 6
0
 public AdsErrorException(string message, AdsErrorCode errorCode) : base(ResMan.GetString(message, errorCode))
 {
     this._errorCode = errorCode;
 }