public enum RollbarResponseCode extends Enum<RollbarResponseCode>
| Enum Constant and Description |
|---|
AccessDenied
Invalid access token.
|
BadRequest
Invalid, or missing, JSON POST body.
|
ConnectionFailed
Indicates that the Payload was not sent to Rollbar because the connection failed
|
Filtered
Indicates that the Payload was not sent to Rollbar because it was filtered
|
InternalServerError
An error occurred on Rollbar's end.
|
RequestTooLarge
Max Payload size exceeded.
|
Success
A successful POST to the API
|
TooManyRequests
Rate limit for your account or access token was reached.
|
Unauthorized
Missing Access Token.
|
UnprocessablePayload
JSON was valid, but semantically incorrect.
|
| Modifier and Type | Method and Description |
|---|---|
static RollbarResponseCode |
fromInt(int i)
Get a Response Code from the integer value returned by the HTTP request.
|
RollbarResponse |
response(String message)
Create a
RollbarResponse from a response code, with a message. |
static RollbarResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RollbarResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RollbarResponseCode Success
public static final RollbarResponseCode BadRequest
public static final RollbarResponseCode Unauthorized
public static final RollbarResponseCode AccessDenied
RollbarResponse message.public static final RollbarResponseCode RequestTooLarge
public static final RollbarResponseCode UnprocessablePayload
RollbarResponse message.public static final RollbarResponseCode TooManyRequests
public static final RollbarResponseCode InternalServerError
public static final RollbarResponseCode Filtered
public static final RollbarResponseCode ConnectionFailed
public static RollbarResponseCode[] values()
for (RollbarResponseCode c : RollbarResponseCode.values()) System.out.println(c);
public static RollbarResponseCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic RollbarResponse response(String message)
RollbarResponse from a response code, with a message.message - The explanatory message.public static RollbarResponseCode fromInt(int i) throws InvalidResponseCodeException
i - the integer value of the response code.InvalidResponseCodeException - if not a valid ResponseCodeCopyright © 2016. All rights reserved.