Reworked handling of error-responses from the Graph-API
authorKai Moritz <kai@juplo.de>
Sat, 7 Nov 2015 13:46:44 +0000 (14:46 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 10 Nov 2015 14:51:14 +0000 (15:51 +0100)
commit5f2b31dc7f443ab9eb088d3150e2d4903cb40159
tree3acdb889d714c90809a92510fd564c03ed554fab
parentd0accf7044000e7f20e8bd586c3c48ce8c8cef7d
Reworked handling of error-responses from the Graph-API

 * The parsing of the response is done by the ObjectMapper from Jackson.
 * Unmapped exceptions are returned as such, instead of handing the handling
   to the parent.
14 files changed:
src/main/java/de/juplo/facebook/client/GraphApiErrorHandler.java
src/main/java/de/juplo/facebook/exceptions/GraphApiException.java
src/main/java/de/juplo/facebook/exceptions/GraphApiExceptionJackson1Deserializer.java [deleted file]
src/main/java/de/juplo/facebook/exceptions/GraphApiExceptionJackson2Deserializer.java [deleted file]
src/main/java/de/juplo/facebook/exceptions/GraphMethodException.java
src/main/java/de/juplo/facebook/exceptions/OAuthException.java
src/main/java/de/juplo/facebook/exceptions/PageMigratedException.java
src/main/java/de/juplo/facebook/exceptions/RateExceededException.java
src/main/java/de/juplo/facebook/exceptions/UnexpectedErrorException.java
src/main/java/de/juplo/facebook/exceptions/UnknownErrorException.java
src/main/java/de/juplo/facebook/exceptions/UnmappedErrorException.java [new file with mode: 0644]
src/main/java/de/juplo/facebook/exceptions/UnsupportedGetRequestException.java
src/test/java/de/juplo/facebook/client/GraphApiErrorHandlerTest.java
src/test/java/de/juplo/facebook/exceptions/FacebookErrorMessageMappingTest.java