Esempio n. 1
0
        private void DoException(string prefix, NurApi.CustomExchangeResponse resp)
        {
            string msg = prefix + ", error = " + resp.error;

            if (resp.tagBytes != null)
            {
                msg += ", length = " + resp.tagBytes.Length;
            }
            else
            {
                msg += " (bytes = null)";
            }

            throw new ApplicationException(msg);
        }
Esempio n. 2
0
 private void InterpretedException(string funcStr, NurApi.CustomExchangeResponse resp)
 {
     throw new ApplicationException(InterpretError(funcStr, resp.tagBytes[0]));
 }