Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 internal SnwConnectorException(RfcErrorInfo errorInfo)
 {
     _rfcRc   = errorInfo.Code;
     _message = errorInfo.Message;
 }
Ejemplo n.º 3
0
 internal SnwConnectorException(RfcRc rfcRc)
 {
     _rfcRc = rfcRc;
 }
Ejemplo n.º 4
0
        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);
        }