NoActionAfterMappingException.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Runtime.Serialization;
  3. namespace Masuit.Tools.Mapping.Exceptions
  4. {
  5. /// <summary>
  6. /// 无法执行任何操作时的异常
  7. /// </summary>
  8. /// <seealso cref="MapperExceptionBase" />
  9. [Serializable]
  10. public class NoActionAfterMappingException : MapperExceptionBase
  11. {
  12. /// <summary>
  13. /// 构造函数
  14. /// </summary>
  15. public NoActionAfterMappingException() : base("无法执行操作,因为操作未定义")
  16. {
  17. }
  18. /// <summary>
  19. /// 构造函数
  20. /// </summary>
  21. /// <param name="serializer">序列化信息</param>
  22. /// <param name="context">上下文</param>
  23. protected NoActionAfterMappingException(SerializationInfo serializer, StreamingContext context) : base(serializer, context)
  24. {
  25. }
  26. /// <summary>
  27. /// 构造函数
  28. /// </summary>
  29. /// <param name="exceptionMessage">异常信息</param>
  30. public NoActionAfterMappingException(string exceptionMessage) : base(exceptionMessage)
  31. {
  32. }
  33. /// <summary>
  34. /// 构造函数
  35. /// </summary>
  36. /// <param name="exceptionMessage">异常信息</param>
  37. /// <param name="innerException">内部异常</param>
  38. public NoActionAfterMappingException(string exceptionMessage, Exception innerException) : base(exceptionMessage, innerException)
  39. {
  40. }
  41. }
  42. }