LinkException.cs 722 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Taobao.Top.Link
  5. {
  6. public class LinkException : Exception
  7. {
  8. public int ErrorCode { get; private set; }
  9. public LinkException() : this(string.Empty) { }
  10. public LinkException(string message) : this(message, null) { }
  11. public LinkException(string message, Exception innerException) : this(0, message, innerException) { }
  12. public LinkException(int errorCode, string message) : this(0, message, null) { }
  13. public LinkException(int errorCode, string message, Exception innerException)
  14. : base(message, innerException)
  15. {
  16. this.ErrorCode = errorCode;
  17. }
  18. }
  19. }