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>
Fri, 22 Nov 2019 06:39:44 +0000 (07:39 +0100)
commit1c809f83874d51c696721f265115ee11f99e607a
treefee8469d7893a628a627db91aa0e68f00ec0e6a4
parent8079d646addc5206f64bfb213d018a2fa94444d3
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