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); }
private void InterpretedException(string funcStr, NurApi.CustomExchangeResponse resp) { throw new ApplicationException(InterpretError(funcStr, resp.tagBytes[0])); }