public RfcErrorInfo(RfcRc code, RfcErrorGroup @group, string key, string message, string abapMsgClass, string abapMsgType, string abapMsgNumber, string abapMsgV1, string abapMsgV2, string abapMsgV3, string abapMsgV4) { Code = code; Group = @group; Key = key; Message = message; AbapMsgClass = abapMsgClass; AbapMsgType = abapMsgType; AbapMsgNumber = abapMsgNumber; AbapMsgV1 = abapMsgV1; AbapMsgV2 = abapMsgV2; AbapMsgV3 = abapMsgV3; AbapMsgV4 = abapMsgV4; }
internal SnwConnectorException(RfcErrorInfo errorInfo) { _rfcRc = errorInfo.Code; _message = errorInfo.Message; }
internal SnwConnectorException(RfcRc rfcRc) { _rfcRc = rfcRc; }
private Either <RfcErrorInfo, TResult> ResultOrError <TResult>(TResult result, RfcRc rc, RfcErrorInfo errorInfo) { if (rc != RfcRc.RFC_OK) { Logger.IfSome(l => l.LogDebug("received error from rfc call", errorInfo)); return(errorInfo); } Logger.IfSome(l => l.LogTrace("received result value from rfc call", result)); return(result); }