private void ThrowInError(tagStateCodes code, string message = null) { if (code != tagStateCodes.stcSuccess) { throw new AlfaException(code, !message.IsEmpty() ? message : _ad.LastResultMsg); } }
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); } }
private void ThrowInError(tagStateCodes code, string message = null) { if (code != tagStateCodes.stcSuccess) throw new AlfaException(code, !message.IsEmpty() ? message : _ad.LastResultMsg); }