@Deprecated
public class Rollbar
extends java.lang.Object
Constructor and Description |
---|
Rollbar(java.lang.String accessToken,
java.lang.String environment)
Deprecated.
Construct a notifier defaults for everything including Sender.
|
Rollbar(java.lang.String accessToken,
java.lang.String environment,
Sender sender)
Deprecated.
Construct notifier, defaults for everything but Sender.
|
Rollbar(java.lang.String accessToken,
java.lang.String environment,
Sender sender,
java.lang.String codeVersion,
java.lang.String platform,
java.lang.String language,
java.lang.String framework,
java.lang.String context,
com.rollbar.api.payload.data.Request request,
com.rollbar.api.payload.data.Person person,
com.rollbar.api.payload.data.Server server,
java.util.Map<java.lang.String,java.lang.Object> custom,
com.rollbar.api.payload.data.Notifier notifier,
SenderListener responseHandler,
Filter filter,
Transformer transform)
Deprecated.
Construct notifier with static values for all configuration options set.
|
Modifier and Type | Method and Description |
---|---|
void |
critical(java.lang.String message)
Deprecated.
Record a critical message.
|
void |
critical(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record a critical message with extra information attached.
|
void |
critical(java.lang.Throwable error)
Deprecated.
Record a critical error.
|
void |
critical(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record a critical error with extra information attached.
|
void |
critical(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Deprecated.
Record a critical error with custom parameters and human readable description.
|
void |
critical(java.lang.Throwable error,
java.lang.String description)
Deprecated.
Record a critical error with human readable description.
|
void |
debug(java.lang.String message)
Deprecated.
Record a debugging message.
|
void |
debug(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record a debugging message with extra information attached.
|
void |
debug(java.lang.Throwable error)
Deprecated.
Record an error as debugging information.
|
void |
debug(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record a debug error with extra information attached.
|
void |
debug(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Deprecated.
Record a debug error with custom parameters and human readable description.
|
void |
debug(java.lang.Throwable error,
java.lang.String description)
Deprecated.
Record a debug error with human readable description.
|
void |
error(java.lang.String message)
Deprecated.
Record an error message.
|
void |
error(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record a error message with extra information attached.
|
void |
error(java.lang.Throwable error)
Deprecated.
Record an error.
|
void |
error(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record an error with extra information attached.
|
void |
error(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Deprecated.
Record an error with custom parameters and human readable description.
|
void |
error(java.lang.Throwable error,
java.lang.String description)
Deprecated.
Record an error with human readable description.
|
void |
handleUncaughtErrors()
Deprecated.
Handle all uncaught errors on current thread with this `Rollbar`.
|
void |
handleUncaughtErrors(java.lang.Thread thread)
Deprecated.
Handle all uncaught errors on
thread with this `Rollbar`. |
void |
info(java.lang.String message)
Deprecated.
Record an informational message.
|
void |
info(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record an informational message with extra information attached.
|
void |
info(java.lang.Throwable error)
Deprecated.
Record an error as an info.
|
void |
info(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record an info error with extra information attached.
|
void |
info(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Deprecated.
Record an info error with custom parameters and human readable description.
|
void |
info(java.lang.Throwable error,
java.lang.String description)
Deprecated.
Record an info error with human readable description.
|
void |
log(java.lang.String message)
Deprecated.
Record a debugging message at the default level of WARNING.
|
void |
log(java.lang.String message,
com.rollbar.api.payload.data.Level level)
Deprecated.
Record a message at the level specified.
|
void |
log(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record a message with extra information attached at the default level of WARNING.
|
void |
log(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom,
com.rollbar.api.payload.data.Level level)
Deprecated.
Record a message with extra information attached at the specified level.
|
void |
log(java.lang.Throwable error)
Deprecated.
Log an error at the default level.
|
void |
log(java.lang.Throwable error,
com.rollbar.api.payload.data.Level level)
Deprecated.
Log an error at level specified.
|
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record an error with extra information attached at the default level.
|
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
com.rollbar.api.payload.data.Level level)
Deprecated.
Record an error with extra information attached at the level specified.
|
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Deprecated.
Record an error with custom parameters and human readable description at the default level.
|
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description,
com.rollbar.api.payload.data.Level level)
Deprecated.
Record an error or message with extra data at the level specified.
|
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description,
com.rollbar.api.payload.data.Level level,
boolean isUncaught)
Deprecated.
Record an error or message with extra data at the level specified.
|
void |
log(java.lang.Throwable error,
java.lang.String description)
Deprecated.
Record an error with human readable description at the default level.
|
void |
log(java.lang.Throwable error,
java.lang.String description,
com.rollbar.api.payload.data.Level level)
Deprecated.
Record a debug error with human readable description at the specified level.
|
void |
warning(java.lang.String message)
Deprecated.
Record a warning message.
|
void |
warning(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record a warning message with extra information attached.
|
void |
warning(java.lang.Throwable error)
Deprecated.
Record an error as a warning.
|
void |
warning(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Deprecated.
Record a warning error with extra information attached.
|
void |
warning(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Deprecated.
Record a warning error with custom parameters and human readable description.
|
void |
warning(java.lang.Throwable error,
java.lang.String description)
Deprecated.
Record a warning with human readable description.
|
public Rollbar(java.lang.String accessToken, java.lang.String environment)
accessToken
- not nullable, the access token to send payloads toenvironment
- not nullable, the environment to send payloads underpublic Rollbar(java.lang.String accessToken, java.lang.String environment, Sender sender)
accessToken
- not nullable, the access token to send payloads toenvironment
- not nullable, the environment to send payloads undersender
- the sender to use. If null uses default: Sender
public Rollbar(java.lang.String accessToken, java.lang.String environment, Sender sender, java.lang.String codeVersion, java.lang.String platform, java.lang.String language, java.lang.String framework, java.lang.String context, com.rollbar.api.payload.data.Request request, com.rollbar.api.payload.data.Person person, com.rollbar.api.payload.data.Server server, java.util.Map<java.lang.String,java.lang.Object> custom, com.rollbar.api.payload.data.Notifier notifier, SenderListener responseHandler, Filter filter, Transformer transform)
accessToken
- not nullable, the access token to send payloads toenvironment
- not nullable, the environment to send payloads undersender
- the sender to use. If null uses default: Sender
codeVersion
- the version of the code currently running. If code checked out on
server: `git rev-parse HEAD`platform
- the platform you're running. (JVM version, or similar).language
- the main language you're running ("java" by default,
override w/ "clojure", "scala" etc.).framework
- the framework you're using ("Play", "Spring", etc.).context
- a mnemonic for finding the code responsible (e.g. controller name, module name)request
- the HTTP request that triggered this error. Can be set if the IOC container
can work per-request.person
- the affected person. Can be set if the IOC container can work per-request.server
- info about this server. This can be statically set.custom
- custom info to send with *every* error. Can be dynamically or statically set.notifier
- information about this notifier. Default new Notifier()
(Notifier
.responseHandler
- what to do with the response. Use this to check for failures and handle
some other way.filter
- filter used to determine if you will send payload. Receives *transformed*
payload.transform
- alter payload before sending.public void handleUncaughtErrors()
public void handleUncaughtErrors(java.lang.Thread thread)
thread
with this `Rollbar`.thread
- the thread to handle errors onpublic void critical(java.lang.Throwable error)
error
- the errorpublic void error(java.lang.Throwable error)
error
- the errorpublic void warning(java.lang.Throwable error)
error
- the errorpublic void info(java.lang.Throwable error)
error
- the errorpublic void debug(java.lang.Throwable error)
error
- the errorpublic void log(java.lang.Throwable error)
error
- the errorpublic void log(java.lang.Throwable error, com.rollbar.api.payload.data.Level level)
error
- the errorlevel
- the level of the errorpublic void critical(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the errorcustom
- the extra informationpublic void error(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the errorcustom
- the extra informationpublic void warning(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the errorcustom
- the extra informationpublic void info(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the errorcustom
- the extra informationpublic void debug(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the errorcustom
- the extra informationpublic void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the errorcustom
- the extra informationpublic void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, com.rollbar.api.payload.data.Level level)
error
- the errorcustom
- the extra informationlevel
- the levelpublic void critical(java.lang.Throwable error, java.lang.String description)
error
- the errordescription
- human readable description of errorpublic void error(java.lang.Throwable error, java.lang.String description)
error
- the errordescription
- human readable description of errorpublic void warning(java.lang.Throwable error, java.lang.String description)
error
- the errordescription
- human readable description of errorpublic void info(java.lang.Throwable error, java.lang.String description)
error
- the errordescription
- human readable description of errorpublic void debug(java.lang.Throwable error, java.lang.String description)
error
- the errordescription
- human readable description of errorpublic void log(java.lang.Throwable error, java.lang.String description)
error
- the errordescription
- human readable description of errorpublic void log(java.lang.Throwable error, java.lang.String description, com.rollbar.api.payload.data.Level level)
error
- the errordescription
- human readable description of errorlevel
- the levelpublic void critical(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the errorcustom
- the custom datadescription
- the human readable description of errorpublic void error(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the errorcustom
- the custom datadescription
- the human readable description of errorpublic void warning(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the errorcustom
- the custom datadescription
- the human readable description of errorpublic void info(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the errorcustom
- the custom datadescription
- the human readable description of errorpublic void debug(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the errorcustom
- the custom datadescription
- the human readable description of errorpublic void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the errorcustom
- the custom datadescription
- the human readable description of errorpublic void critical(java.lang.String message)
message
- the messagepublic void error(java.lang.String message)
message
- the messagepublic void warning(java.lang.String message)
message
- the messagepublic void info(java.lang.String message)
message
- the messagepublic void debug(java.lang.String message)
message
- the messagepublic void log(java.lang.String message)
message
- the messagepublic void log(java.lang.String message, com.rollbar.api.payload.data.Level level)
message
- the messagelevel
- the levelpublic void critical(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the messagecustom
- the extra informationpublic void error(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the messagecustom
- the extra informationpublic void warning(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the messagecustom
- the extra informationpublic void info(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the messagecustom
- the extra informationpublic void debug(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the messagecustom
- the extra informationpublic void log(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the messagecustom
- the extra informationpublic void log(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom, com.rollbar.api.payload.data.Level level)
message
- the messagecustom
- the extra informationlevel
- the levelpublic void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description, com.rollbar.api.payload.data.Level level)
error
- the error (if any)custom
- the custom data (if any)description
- the description of the error, or the message to sendlevel
- the level to send it atpublic void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description, com.rollbar.api.payload.data.Level level, boolean isUncaught)
error
- the error (if any)custom
- the custom data (if any)description
- the description of the error, or the message to sendlevel
- the level to send it atisUncaught
- whether or not this set of data originates from an uncaught exception.