Esempio n. 1
0
        public static ExceptionDescriber GetExceptionDescriber(UInt32 exceptionID)
        {
            var ed = new ExceptionDescriber();

            if (WAPExceptionDict != null && exceptionID>0)
            {
                if (WAPExceptionDict.ContainsKey(exceptionID))
                {
                    WAPExceptionDict.TryGetValue(exceptionID, out ed);
                }
            }

            return ed;
        }
Esempio n. 2
0
        public static void RegisterWAPException(eExceptionType exceptionType,UInt32 exceptionID, String exceptionName, String className,
            String methodName,String exceptionDescription)
        {
            if (WAPExceptionDict.ContainsKey(exceptionID))
                return;
            var ed = new ExceptionDescriber
            {
                ExceptionType = exceptionType,
                ExceptionID = exceptionID,
                ExceptionName = exceptionName,
                ClassName = className,
                MethodName = methodName,
                ExceptionDescription = exceptionDescription
            };

            WAPExceptionDict.Add(ed.ExceptionID, ed);
        }