AbpException.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Runtime.Serialization;
  3. namespace Abp
  4. {
  5. /// <summary>
  6. /// Base exception type for those are thrown by Abp system for Abp specific exceptions.
  7. /// </summary>
  8. [Serializable]
  9. public class AbpException : Exception
  10. {
  11. /// <summary>
  12. /// Creates a new <see cref="AbpException"/> object.
  13. /// </summary>
  14. public AbpException()
  15. {
  16. }
  17. /// <summary>
  18. /// Creates a new <see cref="AbpException"/> object.
  19. /// </summary>
  20. public AbpException(SerializationInfo serializationInfo, StreamingContext context)
  21. : base(serializationInfo, context)
  22. {
  23. }
  24. /// <summary>
  25. /// Creates a new <see cref="AbpException"/> object.
  26. /// </summary>
  27. /// <param name="message">Exception message</param>
  28. public AbpException(string message)
  29. : base(message)
  30. {
  31. }
  32. /// <summary>
  33. /// Creates a new <see cref="AbpException"/> object.
  34. /// </summary>
  35. /// <param name="message">Exception message</param>
  36. /// <param name="innerException">Inner exception</param>
  37. public AbpException(string message, Exception innerException)
  38. : base(message, innerException)
  39. {
  40. }
  41. }
  42. }