Errors during parsing of the error-message are wrapped
authorKai Moritz <kai@jupl.de>
Wed, 20 Nov 2019 13:16:14 +0000 (14:16 +0100)
committerKai Moritz <kai@jupl.de>
Wed, 20 Nov 2019 23:30:04 +0000 (00:30 +0100)
commit8fc05fb4992fe6e34b39d10e9a3b053f42dea893
tree120b9cf2e38df648936eba4612954461dcd36e80
parent86b82a4a9803306225da0292ed4943e81b41e171
Errors during parsing of the error-message are wrapped

* GraphApiException.create() catches any exceptions, thrown during parsing
* Catched exceptions are wrapped with ErrorResponseParsingErrorException
* This exception is then returned as the result of the translation-attempt
* Adjusted GraphApiErrorHandlerTest accordingly
src/main/java/de/juplo/facebook/errors/ErrorResponseParsingErrorException.java [new file with mode: 0644]
src/main/java/de/juplo/facebook/errors/FacebookErrorMessage.java
src/main/java/de/juplo/facebook/errors/GraphApiErrorResponseErrorHandler.java
src/main/java/de/juplo/facebook/errors/GraphApiException.java