Class GitHubException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.atlassian.bamboo.plugins.github.GitHubException
- All Implemented Interfaces:
Serializable
Exception class to handle GitHub related errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGitHubException(String message) Constructs a new GitHubException with the specified detail message.GitHubException(org.json.JSONException e) Constructs a new GitHubException with the specified JSONException. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the exception is due to authentication error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GitHubException
Constructs a new GitHubException with the specified detail message.- Parameters:
message- the detail message.
-
GitHubException
public GitHubException(org.json.JSONException e) Constructs a new GitHubException with the specified JSONException.- Parameters:
e- the JSONException.
-
-
Method Details
-
isAuthError
public boolean isAuthError()Checks if the exception is due to authentication error.- Returns:
- true if the error message is "Bad credentials", false otherwise.
-