Пример #1
0
 public Dacs7ParameterException(ushort errorCode) :
     base($"No success error code: <{Dacs7Exception.ResolveErrorCode<ErrorParameter>(errorCode)}>")
 {
     ErrorCode = (ErrorParameter)errorCode;
 }
Пример #2
0
 public Dacs7ContentException(byte errorCode, int itemIndex) :
     base($"No success return code from item {itemIndex}: <{Dacs7Exception.ResolveErrorCode<ItemResponseRetValue>(errorCode)}>")
 {
     ErrorCode  = (ItemResponseRetValue)errorCode;
     ErrorIndex = itemIndex;
 }