Package com.flagright.api.core
Class FlagrightApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.flagright.api.core.FlagrightException
-
- com.flagright.api.core.FlagrightApiException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BadRequestError,ConflictError,NotFoundError,TooManyRequestsError,UnauthorizedError
public class FlagrightApiException extends FlagrightException
This exception type will be thrown for any non-2XX API responses.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlagrightApiException(java.lang.String message, int statusCode, java.lang.Object body)FlagrightApiException(java.lang.String message, int statusCode, java.lang.Object body, okhttp3.Response rawResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectbody()java.util.Map<java.lang.String,java.util.List<java.lang.String>>headers()intstatusCode()java.lang.StringtoString()
-
-
-
Method Detail
-
statusCode
public int statusCode()
- Returns:
- the statusCode
-
body
public java.lang.Object body()
- Returns:
- the body
-
headers
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers()
- Returns:
- the headers
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-