internal static Exception SmsClientError(string cause, ClientException ex) { SmsException exception = new SmsException(AliyunErrorCodes.SmsClientError, ex); exception.Data["Cause"] = cause; return(exception); }
internal static Exception SmsSendError(string mobile, string?code, string?message) { SmsException exception = new SmsException(AliyunErrorCodes.SmsSendError); exception.Data["Mobile"] = mobile; exception.Data["Code"] = code; exception.Data["Message"] = message; return(exception); }
internal static Exception StsError(long userId, string bucketname, string direcotry, bool readOnly, Exception ex) { SmsException exception = new SmsException(AliyunErrorCodes.StsError, ex); exception.Data["UserId"] = userId; exception.Data["BucketName"] = bucketname; exception.Data["Directory"] = direcotry; exception.Data["ReadOnly"] = readOnly; return(exception); }