Beispiel #1
0
        public int GetRole()
        {
            try
            {
                int[] s = { 1, 2 };

                int s2 = s[3];
            }
            catch (Exception ex)
            {
                ILog4net.Debug("GetRole", "Role", ex.Message, ex);
                EntlibLogFactory.Log.LogError("seterror", ex);
            }
            return(1);
        }
Beispiel #2
0
        public int SetRole()
        {
            int d = 0;

            try
            {
                var s = 9 / d;
                return(1);
            }
            catch (Exception ex)
            {
                ILog4net.Debug("SetRole", "Role", ex.Message, ex);

                EntlibLogFactory.Log.LogError("seterror", ex);
                throw ex;
                //return 0;
            }
        }