using System; using System.Collections.Generic; using System.Runtime.Serialization; using System.Text; namespace COSXML.CosException { /// /// 客户端异常,通常是指没有收到服务器响应的异常,比如网络异常、本地 IO 异常等。 /// [Serializable] public class CosClientException : System.ApplicationException { /// /// 错误码 /// /// public int errorCode; public CosClientException(int errorCode, string message) : base(message) { this.errorCode = errorCode; } public CosClientException(int errorCode, string message, Exception cause) : base(message, cause) { this.errorCode = errorCode; } } }