Skip to content

Commit 614c871

Browse files
authored
Merge pull request #103 from microsoftgraph/deserialize-graph-error
Deserialize graphError
2 parents d392d52 + c70809a commit 614c871

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/java/com/microsoft/graph/http/GraphError.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@
2525
import com.google.gson.annotations.SerializedName;
2626

2727
import com.microsoft.graph.core.GraphErrorCodes;
28+
import com.google.gson.annotations.Expose;
2829

2930
public class GraphError {
3031

3132
@SerializedName("message")
33+
@Expose()
3234
public String message;
3335

3436
@SerializedName("code")
37+
@Expose()
3538
public String code;
3639

3740
@SerializedName("innererror")

src/main/java/com/microsoft/graph/http/GraphErrorResponse.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public class GraphErrorResponse implements IJsonBackedObject {
3434
private AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
3535

3636
@SerializedName("error")
37+
@Expose()
3738
public GraphError error;
3839

3940
/**

0 commit comments

Comments
 (0)