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 path, int statusCode, String msg)
Response to request came back with non-2xx status codeRequestNotOkException(String path, int statusCode, String msg, Throwable cause)
Response to request came back with non-2xx status code
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
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
-
statusCode
public int statusCode()
Get the status code of the response- Returns:
- status
-
path
public String path()
Get request URI path- Returns:
- path
-
-