Thrown when an invoked action fails. Will not be visible to external code
Наследование: 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
        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);
        }