/// <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); }
/// <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); }
/// <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); }
/// <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; }