Instead of throwing an IOException with String message, use the new HttpException. The exception handling code can then use the status code to be more specific how to handle the exception. Also: use try-with-resources for the okhttp response where possible |
||
---|---|---|
.. | ||
bonga | ||
cam4 | ||
camsoda | ||
chaturbate | ||
mfc | ||
AbstractSite.java | ||
ConfigUI.java | ||
Site.java |