Thrown when an invoked action fails. Will not be visible to external code
Inheritance: System.Exception
コード例 #1
0
        public void ReportActionError(ActionError aException, string aActionName)
        {
            uint errCode = aException.Code;

            if (errCode == 0)
            {
                errCode = 501;
            }

            String msg = aException.Message;

            if (msg == null || msg.Length == 0)
            {
                msg = String.Format("Action {0} failed", new object[] { aActionName });
            }

            ReportError(errCode, msg);
        }
コード例 #2
0
ファイル: DvProvider.cs プロジェクト: nterry/ohNet
        public void ReportActionError(ActionError aException, string aActionName)
        {
            uint errCode = aException.Code;
            if (errCode == 0)
                errCode = 501;

            String msg = aException.Message;
            if (msg == null || msg.Length == 0)
                msg = String.Format("Action {0} failed", aActionName);

            ReportError(errCode, msg);
        }