cloudinary / cloudinary/cloudinary_java
Upload API throws RuntimeException
- 主要语言
- Java
- 星标
- 175
- 派生
- 113
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hello,
You should provide an easy way to handle upload errors in your SDK.
The method signature suggests that you will be throwing an IOException but looking at the source code, we can see that you're actually throwing RuntimeException in several cases ! These cases should be handled differently in the SDK so that the caller can identify them : they are definitely not a reason to throw a RuntimeException.
At the minimum, you should throw a IOException as specified by the upload signature.
Alternatively, you could think about a nicer error handling system, either with a custom Exception or with a specific Map returned (whose values should be documented !).
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。