Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #54 from takke/fix_not_thrown_exception_from_okhttp3
Browse files Browse the repository at this point in the history
care IllegalArgumentException
  • Loading branch information
sys1yagi authored Aug 18, 2017
2 parents a02d8a3 + 61504d2 commit 4ea0f23
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ private constructor(
.post(body)
.build())
return call.execute()
} catch (e: IllegalArgumentException) {
throw Mastodon4jRequestException(e)
} catch (e: IOException) {
throw Mastodon4jRequestException(e)
}
Expand Down

0 comments on commit 4ea0f23

Please sign in to comment.