| Constructor and Description |
|---|
Builder()
Constructor.
|
Builder(Data data)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Data.Builder |
body(Body body)
The actual
data being sent to rollbar (not metadata, about the request, server,
etc.). |
Data |
build()
Builds the
data. |
Data.Builder |
client(Client client)
Data about the client device this event occurred on.
|
Data.Builder |
codeVersion(java.lang.String codeVersion)
The currently running version of the code.
|
Data.Builder |
context(java.lang.String context)
Custom identifier to help find where the error came from, Controller class name, for
instance.
|
Data.Builder |
custom(java.util.Map<java.lang.String,java.lang.Object> custom)
Custom data that will aid in debugging the error.
|
Data.Builder |
environment(java.lang.String environment)
Represents the current environment (e.g.: production, debug, test).
|
Data.Builder |
fingerprint(java.lang.String fingerprint)
Override the default and custom grouping with a string, if over 255 characters will be
hashed.
|
Data.Builder |
framework(java.lang.String framework)
The framework being run (e.g.
|
Data.Builder |
isUncaught(boolean isUncaught)
Specify whether this data object originates from an uncaught exception or not.
|
Data.Builder |
language(java.lang.String language)
The language running (most likely java, but any JVM language might be here).
|
Data.Builder |
level(Level level)
The rollbar error
level. |
Data.Builder |
level(java.lang.String level)
The rollbar error level.
|
Data.Builder |
notifier(Notifier notifier)
Information about this notifier, esp.
|
Data.Builder |
person(Person person)
Data about the user that experienced the error, if possible.
|
Data.Builder |
platform(java.lang.String platform)
The platform running (most likely JVM and a version).
|
Data.Builder |
request(Request request)
Data about the Http Request that caused this, if applicable.
|
Data.Builder |
server(Server server)
Data about the machine on which the error occurred.
|
Data.Builder |
timestamp(java.lang.Long timestamp)
The moment the bug happened, visible in ui as client_timestamp.
|
Data.Builder |
title(java.lang.String title)
The title, max length 255 characters, overrides the default and custom ones set by Rollbar.
|
Data.Builder |
uuid(java.lang.String uuid)
Override the error UUID, unique to each project, used to deduplicate occurrences.
|
public Data.Builder environment(java.lang.String environment)
environment - the environment.public Data.Builder body(Body body)
data being sent to rollbar (not metadata, about the request, server,
etc.).body - the body.public Data.Builder level(java.lang.String level)
level - the level.public Data.Builder level(Level level)
level.level - the level.public Data.Builder timestamp(java.lang.Long timestamp)
timestamp - the timestamp as a Long with millisecond precision.
This vaulue is converted to seconds when serialized to JSON
to conform to the API spec.public Data.Builder codeVersion(java.lang.String codeVersion)
codeVersion - the code version.public Data.Builder platform(java.lang.String platform)
platform - the platform.public Data.Builder language(java.lang.String language)
language - the language.public Data.Builder framework(java.lang.String framework)
framework - the framework.public Data.Builder context(java.lang.String context)
context - the context.public Data.Builder request(Request request)
request - the request.public Data.Builder person(Person person)
person - the person.public Data.Builder server(Server server)
server - the server.public Data.Builder client(Client client)
client - the client.public Data.Builder custom(java.util.Map<java.lang.String,java.lang.Object> custom)
custom - the custom.public Data.Builder fingerprint(java.lang.String fingerprint)
fingerprint - the fingerprint.public Data.Builder title(java.lang.String title)
title - the title.public Data.Builder uuid(java.lang.String uuid)
uuid - the uuid.public Data.Builder isUncaught(boolean isUncaught)
isUncaught - true if this comes from an uncaught exception.public Data.Builder notifier(Notifier notifier)
notifier - the notifier.