Class GithubException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ink.icoding.github4j.GithubException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GithubAuthenticationException, GithubAuthorizationException, GithubNotFoundException, GithubRateLimitException, GithubServerException, GithubValidationException
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGithubException(int statusCode, String message, String url) GithubException(int statusCode, String message, String url, String documentationUrl, List<GithubException.ErrorDetail> errors) -
Method Summary
Modifier and TypeMethodDescriptionerrors()static GithubExceptionfromResponse(int statusCode, byte[] body, String url) inturl()Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GithubException
-
GithubException
public GithubException(int statusCode, String message, String url, String documentationUrl, List<GithubException.ErrorDetail> errors)
-
-
Method Details
-
fromResponse
-
statusCode
public int statusCode() -
url
-
documentationUrl
-
githubMessage
-
errors
-