Beispiel #1
0
        private static void BuildManager_OnBuildException(Exception ex)
        {
            CompileException ce = ex as CompileException;

            if (ce != null)
            {
                SafeLogException(ce.GetDetailMessages());
            }
            else
            {
                SafeLogException(ex.ToString());
            }
        }
        /// <summary>
        /// 注册编译失败事件处理。
        /// </summary>
        /// <param name="ex"></param>
        static void BuildManager_OnBuildException(Exception ex)
        {
            CompileException ce = ex as CompileException;

            if (ce != null)
            {
                //throw new Exception("编译数据实体加载器代码时引发的异常。详细信息:" + ce.GetDetailMessages());
                SafeLogException(ce.GetDetailMessages());
            }
            else
            {
                // 未知的异常类型
                //throw ex;
                // 未知的异常类型
                SafeLogException(ex.ToString());
            }
        }