2 Star 14 Fork 12

进击的皇虫 / CloudStore

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
error.go 481 Bytes
一键复制 编辑 原始数据 按行查看 历史
TruthHun 提交于 2019-12-30 22:02 . 华为云OBS SDK路径调整
package obs
import (
"encoding/xml"
"fmt"
)
type ObsError struct {
BaseModel
Status string
XMLName xml.Name `xml:"Error"`
Code string `xml:"Code"`
Message string `xml:"Message"`
Resource string `xml:"Resource"`
HostId string `xml:"HostId"`
}
func (err ObsError) Error() string {
return fmt.Sprintf("obs: service returned error: Status=%s, Code=%s, Message=%s, RequestId=%s",
err.Status, err.Code, err.Message, err.RequestId)
}
Go
1
https://gitee.com/truthhun/CloudStore.git
git@gitee.com:truthhun/CloudStore.git
truthhun
CloudStore
CloudStore
5712bf67b129

搜索帮助