public class RollbarResponse extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
errorMessage()
Get the error message returned by rollbar if not successful.
|
static RollbarResponse |
failure(RollbarResponseCode code,
String reason)
The static factory method for a failed post to Rollbar
|
String |
instanceUrl()
Get the URL of the instance, given the UUID returned by Rollbar.
|
boolean |
isSuccessful() |
static RollbarResponse |
notSent()
The static factory method for a payload that wasn't sent because it was filtered.
|
RollbarResponseCode |
statusCode()
Get the HTTP status code (as a RollbarResponseCode).
|
static RollbarResponse |
success(String uuid)
The static factory method for a successful post to Rollbar
|
String |
uuid()
Get the UUID of the occurrence, if the post was successful.
|
public static RollbarResponse success(String uuid)
uuid - the occurrence id that will result from the POSTpublic static RollbarResponse failure(RollbarResponseCode code, String reason)
code - the RollbarResponseCode that caused thisreason - the message explaining the failurepublic static RollbarResponse notSent()
public RollbarResponseCode statusCode()
public String uuid()
null otherwise.public String instanceUrl()
public String errorMessage()
null otherwise.public boolean isSuccessful()
Copyright © 2016. All rights reserved.