Beispiel #1
0
 private void ThrowInError(tagStateCodes code, string message = null)
 {
     if (code != tagStateCodes.stcSuccess)
     {
         throw new AlfaException(code, !message.IsEmpty() ? message : _ad.LastResultMsg);
     }
 }
Beispiel #2
0
 private void ThrowInError(tagStateCodes code, string message = null)
 {
     if (code != tagStateCodes.stcSuccess)
     {
         var msg = "{0}: ERROR({1}): {2}".Put(Name, code, !message.IsEmpty() ? message : _ad.LastResultMsg);
         _logReceiver.AddErrorLog(msg);
         throw new AlfaException(code, msg);
     }
 }
Beispiel #3
0
		private void ThrowInError(tagStateCodes code, string message = null)
		{
			if (code != tagStateCodes.stcSuccess)
				throw new AlfaException(code, !message.IsEmpty() ? message : _ad.LastResultMsg);
		}