Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="exceptionID"></param>
        /// <returns></returns>
        public static ExceptionDescriber GetExceptionDescriber(UInt32 exceptionID)
        {
            var ed = new ExceptionDescriber();

            if (ExceptionDict == null || exceptionID <= 0)
            {
                return(ed);
            }
            if (ExceptionDict.ContainsKey(exceptionID))
            {
                ExceptionDict.TryGetValue(exceptionID, out ed);
            }

            return(ed);
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="exceptionType"></param>
        /// <param name="exceptionID"></param>
        /// <param name="exceptionName"></param>
        /// <param name="className"></param>
        /// <param name="methodName"></param>
        /// <param name="exceptionDescription"></param>
        public static void RegisterException(MessageType exceptionType, UInt32 exceptionID, String exceptionName, String className,
                                             String methodName, String exceptionDescription)
        {
            if (ExceptionDict.ContainsKey(exceptionID))
            {
                return;
            }
            var ed = new ExceptionDescriber
            {
                ExceptionType        = exceptionType,
                ExceptionId          = exceptionID,
                ExceptionName        = exceptionName,
                ClassName            = className,
                MethodName           = methodName,
                ExceptionDescription = exceptionDescription
            };

            ExceptionDict.Add(ed.ExceptionId, ed);
        }
Example #3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="exceptionType"></param>
        /// <param name="exceptionID"></param>
        /// <param name="exceptionName"></param>
        /// <param name="className"></param>
        /// <param name="methodName"></param>
        /// <param name="exceptionDescription"></param>
        public static void RegisterException(MessageType exceptionType, UInt32 exceptionID, String exceptionName, String className,
            String methodName, String exceptionDescription)
        {
            if (ExceptionDict.ContainsKey(exceptionID))
                return;
            var ed = new ExceptionDescriber
            {
                ExceptionType = exceptionType,
                ExceptionId = exceptionID,
                ExceptionName = exceptionName,
                ClassName = className,
                MethodName = methodName,
                ExceptionDescription = exceptionDescription
            };

            ExceptionDict.Add(ed.ExceptionId, ed);
        }
Example #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="exceptionID"></param>
        /// <returns></returns>
        public static ExceptionDescriber GetExceptionDescriber(UInt32 exceptionID)
        {
            var ed = new ExceptionDescriber();

            if (ExceptionDict == null || exceptionID <= 0) return ed;
            if (ExceptionDict.ContainsKey(exceptionID))
            {
                ExceptionDict.TryGetValue(exceptionID, out ed);
            }

            return ed;

        }