CosClientException.cs 870 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.Serialization;
  4. using System.Text;
  5. namespace COSXML.CosException
  6. {
  7. /// <summary>
  8. /// 客户端异常,通常是指没有收到服务器响应的异常,比如网络异常、本地 IO 异常等。
  9. /// </summary>
  10. [Serializable]
  11. public class CosClientException : System.ApplicationException
  12. {
  13. /// <summary>
  14. /// 错误码
  15. /// <see href="Common.CosClientError"/>
  16. /// </summary>
  17. public int errorCode;
  18. public CosClientException(int errorCode, string message)
  19. : base(message)
  20. {
  21. this.errorCode = errorCode;
  22. }
  23. public CosClientException(int errorCode, string message, Exception cause)
  24. : base(message, cause)
  25. {
  26. this.errorCode = errorCode;
  27. }
  28. }
  29. }