-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package io.getstream.core.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class APIError { | ||
private String Code; | ||
private String Message; | ||
private String Status; | ||
|
||
public String toString() { | ||
return "{Code='" + Code + "', Message=" + Message + "}"; | ||
} | ||
// Default constructor | ||
public APIError() {} | ||
|
||
// Constructor with parameters | ||
@JsonCreator | ||
public APIError( | ||
@JsonProperty("code") String code, | ||
@JsonProperty("message") String message, | ||
@JsonProperty("status") String status) { | ||
this.Code = code; | ||
this.Message = message; | ||
this.Status = status; | ||
} | ||
|
||
// Getters | ||
public String getCode() { | ||
return Code; | ||
} | ||
|
||
public String getMessage() { | ||
return Message; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters