CosServerError.cs 982 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Xml.Serialization;
  3. using System.Text;
  4. namespace COSXML.Model.Tag
  5. {
  6. /// <summary>
  7. /// cos server 返回的错误信息
  8. /// <see href="https://cloud.tencent.com/document/product/436/7730"/>
  9. /// </summary>
  10. [XmlRoot("Error")]
  11. public sealed class CosServerError
  12. {
  13. /// <summary>
  14. /// 错误码
  15. /// </summary>
  16. [XmlElement("Code")]
  17. public string code;
  18. /// <summary>
  19. /// 错误信息
  20. /// </summary>
  21. [XmlElement("Message")]
  22. public string message;
  23. /// <summary>
  24. /// 资源地址
  25. /// </summary>
  26. [XmlElement("Resource")]
  27. public string resource;
  28. /// <summary>
  29. /// 请求ID
  30. /// </summary>
  31. [XmlElement("RequestId")]
  32. public string requestId;
  33. /// <summary>
  34. /// 错误ID
  35. /// </summary>
  36. [XmlElement("TraceId")]
  37. public string traceId;
  38. }
  39. }