Example #1
0
        internal static Exception SmsClientError(string cause, ClientException ex)
        {
            SmsException exception = new SmsException(AliyunErrorCodes.SmsClientError, ex);

            exception.Data["Cause"] = cause;

            return(exception);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }