projects
/
facebook-errors
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP: Spring-Upgrade auf 2.2.0
[facebook-errors]
/
src
/
main
/
java
/
de
/
juplo
/
facebook
/
errors
/
FacebookErrorMessage.java
diff --git
a/src/main/java/de/juplo/facebook/errors/FacebookErrorMessage.java
b/src/main/java/de/juplo/facebook/errors/FacebookErrorMessage.java
index
495c665
..
f807bc7
100644
(file)
--- a/
src/main/java/de/juplo/facebook/errors/FacebookErrorMessage.java
+++ b/
src/main/java/de/juplo/facebook/errors/FacebookErrorMessage.java
@@
-1,6
+1,9
@@
package de.juplo.facebook.errors;
package de.juplo.facebook.errors;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_EMPTY;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonRootName;
@@
-23,20
+26,31
@@
import com.fasterxml.jackson.annotation.JsonRootName;
"error_user_msg",
"fbtrace_id"
})
"error_user_msg",
"fbtrace_id"
})
+@JsonIgnoreProperties(ignoreUnknown = true)
public class FacebookErrorMessage
{
@JsonProperty("message")
public class FacebookErrorMessage
{
@JsonProperty("message")
+ @JsonInclude(NON_EMPTY)
String message;
@JsonProperty("type")
String message;
@JsonProperty("type")
+ @JsonInclude(NON_EMPTY)
String type;
@JsonProperty("code")
String type;
@JsonProperty("code")
+ @JsonInclude(NON_EMPTY)
Integer code;
@JsonProperty("error_subcode")
Integer code;
@JsonProperty("error_subcode")
+ @JsonInclude(NON_EMPTY)
Integer subCode;
@JsonProperty("error_user_title")
Integer subCode;
@JsonProperty("error_user_title")
+ @JsonInclude(NON_EMPTY)
String userTitle;
@JsonProperty("error_user_msg")
String userTitle;
@JsonProperty("error_user_msg")
+ @JsonInclude(NON_EMPTY)
String userMessage;
@JsonProperty("fbtrace_id")
String userMessage;
@JsonProperty("fbtrace_id")
+ @JsonInclude(NON_EMPTY)
String traceId;
String traceId;
+ @JsonProperty("is_transient")
+ @JsonInclude(NON_EMPTY)
+ Boolean isTransient;
}
}