123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace JLHHJSvr.LJException
- {
- public class LJException : Exception
- {
- public LJException(string msg)
- : base(msg)
- {
- }
- #if !DEBUG
- // 非debug版本不返回堆栈
- public override string ToString()
- {
- return Message;
- }
- #endif
- }
- public class LJCommonException : LJException
- {
- public LJCommonException(string message)
- : base(message)
- {
- }
- }
- public class LJNetworkException : LJException
- {
- public LJNetworkException(string message)
- : base(message)
- {
- }
- }
- public class LJSearchResultNotFoundException : LJException
- {
- public LJSearchResultNotFoundException(string msg)
- : base(string.Format("未查找到[{0}]的相关记录", msg))
- {
- }
- }
- public class PriceHelperException : LJException
- {
- public PriceHelperException(string message)
- : base(message)
- {
- }
- }
- public class PBExpressionHelperException : LJException
- {
- public PBExpressionHelperException(string message)
- : base(message)
- {
- }
- }
- public class LJPowerMissingExeption : LJException
- {
- public LJPowerMissingExeption(string message)
- : base(message)
- {
- }
- }
- }
|