Thrown when an invoked action fails. Will not be visible to external code
Inheritance: System.Exception
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }