using System; using System.Runtime.Serialization; namespace Masuit.Tools.Mapping.Exceptions { /// /// mapper异常基类 /// [Serializable] public class MapperExceptionBase : Exception { /// /// 构造函数 /// /// 异常信息 public MapperExceptionBase(string exceptionMessage) : base(exceptionMessage) { } /// /// 无参构造函数 /// public MapperExceptionBase() { } /// /// 构造函数 /// /// 序列化信息 /// 上下文 protected MapperExceptionBase(SerializationInfo serializer, StreamingContext context) : base(serializer, context) { } /// /// 构造函数 /// /// 异常信息 /// 内部异常 public MapperExceptionBase(string exceptionMessage, Exception innerException) : base(exceptionMessage, innerException) { } /// /// 验证参数 /// /// 消息 /// 条件 /// 异常信息 protected static string ValideParameter(string message, params bool[] conditions) { return message; } } }