Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API调用,如何获取ResponseCore或者Result对象 #2

Closed
xuxucode opened this issue Dec 6, 2015 · 2 comments
Closed

API调用,如何获取ResponseCore或者Result对象 #2

xuxucode opened this issue Dec 6, 2015 · 2 comments

Comments

@xuxucode
Copy link
Contributor

xuxucode commented Dec 6, 2015

如果调用OssClient::listObjects()出现异常则直接抛OssException,除此之外无法得知HTTP status code和异常信息:比如,InvalidAccessKeyId, SignatureDoesNotMatch.

而之前的老版本是可以的,因为它的接口调用直接返回ResponseCore对象.

@xuxucode
Copy link
Contributor Author

我看到OssException::message里包含了Code, Message, Reason等字段,能否增加这些字段相应的OssException成员变量,而OssException::message换成普通信息,这样更好了。

@rockuw
Copy link
Contributor

rockuw commented Dec 11, 2015

谢谢你的建议,我们会在下一个小版本中解决这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants