Refactoring: moved FacebookErrorMessage in its own file/class
[facebook-utils] / src / main / java / de / juplo / facebook / exceptions / FacebookErrorMessage.java
1 package de.juplo.facebook.exceptions;
2
3
4 import com.fasterxml.jackson.annotation.JsonProperty;
5 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
6 import com.fasterxml.jackson.annotation.JsonRootName;
7
8
9
10 /**
11  * This class represents an error message from the Graph-API
12  *
13  * @see <a href="https://developers.facebook.com/docs/graph-api/using-graph-api/v2.5#errors">Graph-API Documentation</a>
14  * @author Kai Moritz
15  */
16 @JsonRootName("error")
17 @JsonPropertyOrder({
18   "message",
19   "type",
20   "code",
21   "error_subcode",
22   "error_user_title",
23   "error_user_msg",
24   "fbtrace_id"
25   })
26 public class FacebookErrorMessage
27 {
28   @JsonProperty("message")
29   String message;
30   @JsonProperty("type")
31   String type;
32   @JsonProperty("code")
33   Integer code;
34   @JsonProperty("error_subcode")
35   Integer subCode;
36   @JsonProperty("error_user_title")
37   String userTitle;
38   @JsonProperty("error_user_msg")
39   String userMessage;
40   @JsonProperty("fbtrace_id")
41   String traceId;
42 }