forked from hub4j/github-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGHError.java
More file actions
58 lines (48 loc) · 1.28 KB
/
Copy pathGHError.java
File metadata and controls
58 lines (48 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package org.kohsuke.github;
import com.fasterxml.jackson.annotation.JsonProperty;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.Serializable;
import java.net.URL;
/**
* Represents an error from GitHub.
*
* @author Miguel Esteban Gutiérrez
*/
public class GHError implements Serializable {
/**
* The serial version UID of the error
*/
private static final long serialVersionUID = 2008071901;
/**
* The URL to the documentation for the error.
*/
@JsonProperty("documentation_url")
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "Field comes from JSON deserialization")
private String documentation;
/**
* The error message.
*/
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "Field comes from JSON deserialization")
private String message;
/**
* Create default GHError instance
*/
public GHError() {
}
/**
* Get the URL to the documentation for the error.
*
* @return the url
*/
public URL getDocumentationUrl() {
return GitHubClient.parseURL(documentation);
}
/**
* Get the error message.
*
* @return the message
*/
public String getMessage() {
return message;
}
}