{"push_id":2316014137,"size":5,"distinct_size":1,"ref":"refs/heads/improve-exception-handling","head":"f4f5e79f6dd86587f700516bbaaec01330f7a3fe","before":"a158899e60061b9b24d1193e0857e52756153ea2","commits":[{"sha":"fc37e2da2bc2a332e75184026d407c73a7809baf","author":{"name":"Björn Kautler","email":"f5dfe35d3e88ea4bfd83529d0442d4ccb4a1d66c@Kautler.net"},"message":"Make non-cached users retrievable","distinct":false,"url":"https://api.github.com/repos/Vampire/Javacord/commits/fc37e2da2bc2a332e75184026d407c73a7809baf"},{"sha":"221fafece930f0c5bdbcedd8eb3abbf0515299b7","author":{"name":"Björn Kautler","email":"f5dfe35d3e88ea4bfd83529d0442d4ccb4a1d66c@Kautler.net"},"message":"Fix audit log entry base URL for icons","distinct":false,"url":"https://api.github.com/repos/Vampire/Javacord/commits/221fafece930f0c5bdbcedd8eb3abbf0515299b7"},{"sha":"e713177bab3bebe06da163d6cc46a3e19a3c8125","author":{"name":"Bastian Oppermann","email":"7a7e4556380695239e7146c75a98571d9775bb82@gmail.com"},"message":"Merge pull request #193 from Vampire/retrievable-non-cached-users\n\nMake non-cached users retrievable","distinct":false,"url":"https://api.github.com/repos/Vampire/Javacord/commits/e713177bab3bebe06da163d6cc46a3e19a3c8125"},{"sha":"08a1369ad88fd2eefbea0550c2e766235aaa1a0f","author":{"name":"Bastian Oppermann","email":"7a7e4556380695239e7146c75a98571d9775bb82@gmail.com"},"message":"Merge pull request #194 from Vampire/fix-audit-log-entry-icon-base-url\n\nFix audit log entry base URL for icons","distinct":false,"url":"https://api.github.com/repos/Vampire/Javacord/commits/08a1369ad88fd2eefbea0550c2e766235aaa1a0f"},{"sha":"f4f5e79f6dd86587f700516bbaaec01330f7a3fe","author":{"name":"Björn Kautler","email":"f5dfe35d3e88ea4bfd83529d0442d4ccb4a1d66c@Kautler.net"},"message":"Improve exception handling\n\n- Add BadRequestException for HTTP response 400\n- Add NotFoundException for HTTP response 404\n- Add ReactionBlockedException for when you try to react on a message of a user that blocked you\n- Add UnknownEmojiException for when you try to react with an emoji Discord doesn't know about\n- Add UnknownMessageException for when you specify an unknown message\n- Add RestRequestHttpResponseCode enum which defines all Discord-used HTTP response codes and the exception classes that should be used for them if different from the generic DiscordException\n- Add RestRequestResultErrorCode enum which defines all Discord-defined error codes in JSON results and the exception classes that should be used for them if different from the ones specific to the HTTP code; they still have to be subclasses of the exception for the HTTP code\n- Change RestRequest to create the exceptions dynamically according to the two new enums instead of hard-coding a switch-case with magic numbers","distinct":true,"url":"https://api.github.com/repos/Vampire/Javacord/commits/f4f5e79f6dd86587f700516bbaaec01330f7a3fe"}]}
{"actor":{"display_login":"Vampire"}}