Package com.spotify.github.v3.exceptions
Class RequestNotOkException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.spotify.github.v3.exceptions.GithubException
-
- com.spotify.github.v3.exceptions.RequestNotOkException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ReadOnlyRepositoryException
public class RequestNotOkException extends GithubException
HTTP response with non-200 StatusCode.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestNotOkException(String method, String path, int statusCode, String msg)
Response to request came back with non-2xx status code
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRawMessage()
Get the raw message from githubString
method()
Get request HTTP methodString
path()
Get request URI pathint
statusCode()
Get the status code of the response-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getRawMessage
public String getRawMessage()
Get the raw message from github- Returns:
- msg
-
statusCode
public int statusCode()
Get the status code of the response- Returns:
- status
-
method
public String method()
Get request HTTP method- Returns:
- method
-
path
public String path()
Get request URI path- Returns:
- path
-
-