projects
/
facebook-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The types of the exeptions are now mapped to an enum
[facebook-utils]
/
src
/
main
/
java
/
de
/
juplo
/
facebook
/
exceptions
/
GraphApiException.java
diff --git
a/src/main/java/de/juplo/facebook/exceptions/GraphApiException.java
b/src/main/java/de/juplo/facebook/exceptions/GraphApiException.java
index
705caa4
..
9379abe
100644
(file)
--- a/
src/main/java/de/juplo/facebook/exceptions/GraphApiException.java
+++ b/
src/main/java/de/juplo/facebook/exceptions/GraphApiException.java
@@
-22,6
+22,9
@@
import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;
*/
public class GraphApiException extends OAuth2Exception
{
*/
public class GraphApiException extends OAuth2Exception
{
+ public enum Type { OAuthException, GraphMethodException }
+
+
final static Logger LOG = LoggerFactory.getLogger(GraphApiException.class);
final static ObjectMapper OBJECT_MAPPER;
final static Logger LOG = LoggerFactory.getLogger(GraphApiException.class);
final static ObjectMapper OBJECT_MAPPER;
@@
-96,9
+99,9
@@
public class GraphApiException extends OAuth2Exception
}
}
- public
String
getType()
+ public
Type
getType()
{
{
- return error.type;
+ return error.type
== null ? null : Type.valueOf(error.type)
;
}
public Integer getCode()
}
public Integer getCode()