Class GitHubException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.atlassian.bamboo.plugins.github.GitHubException
All Implemented Interfaces:
Serializable

public class GitHubException extends Exception
Exception class to handle GitHub related errors.
See Also:
  • Constructor Details

    • GitHubException

      public GitHubException(String message)
      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.