public class Report
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Report(Configuration config,
java.lang.Throwable throwable)
Create a report for the error.
|
| Modifier and Type | Method and Description |
|---|---|
Report |
addToTab(java.lang.String tabName,
java.lang.String key,
java.lang.Object value)
Add a key value pair to a metadata tab.
|
Report |
cancel() |
Report |
clearTab(java.lang.String tabName)
Clear all of the keys from the given tab.
|
protected java.lang.String |
getApiKey()
Get the API key in the report.
|
java.util.Map<java.lang.String,java.lang.Object> |
getApp() |
java.lang.String |
getContext() |
java.util.Map<java.lang.String,java.lang.Object> |
getDevice() |
java.lang.Throwable |
getException() |
java.lang.String |
getExceptionMessage() |
java.lang.String |
getExceptionName() |
protected java.util.List<com.bugsnag.Exception> |
getExceptions()
Get the exceptions for the report.
|
java.lang.String |
getGroupingHash() |
java.util.Map<java.lang.String,java.lang.Object> |
getMetaData() |
protected java.lang.String |
getPayloadVersion() |
java.lang.String |
getSeverity() |
boolean |
getShouldCancel() |
protected java.util.List<com.bugsnag.ThreadState> |
getThreads() |
java.util.Map<java.lang.String,java.lang.String> |
getUser() |
Report |
setApiKey(java.lang.String apiKey)
Set the API key for the report.
|
Report |
setAppInfo(java.lang.String key,
java.lang.Object value)
Add some application info on the report.
|
Report |
setContext(java.lang.String context)
Set context of the report.
|
Report |
setDeviceInfo(java.lang.String key,
java.lang.Object value)
Set device information on the report.
|
void |
setExceptionName(java.lang.String exceptionName)
Sets the class name from the exception contained in this error report.
|
Report |
setGroupingHash(java.lang.String groupingHash)
Set the grouping hash on the report.
|
Report |
setSeverity(Severity severity)
Set the severity to use in the report.
|
Report |
setUser(java.lang.String id,
java.lang.String email,
java.lang.String name)
Helper method to set all the user attributes.
|
Report |
setUserEmail(java.lang.String email) |
Report |
setUserId(java.lang.String id) |
Report |
setUserName(java.lang.String name) |
protected Report(Configuration config, java.lang.Throwable throwable)
config - the configuration for the report.throwable - the error to create the report for.protected java.lang.String getPayloadVersion()
protected java.util.List<com.bugsnag.Exception> getExceptions()
protected java.util.List<com.bugsnag.ThreadState> getThreads()
public java.lang.String getGroupingHash()
public java.lang.String getSeverity()
public java.lang.String getContext()
public java.util.Map<java.lang.String,java.lang.Object> getApp()
public java.util.Map<java.lang.String,java.lang.Object> getDevice()
public java.util.Map<java.lang.String,java.lang.String> getUser()
public java.util.Map<java.lang.String,java.lang.Object> getMetaData()
public java.lang.Throwable getException()
public java.lang.String getExceptionName()
public void setExceptionName(java.lang.String exceptionName)
exceptionName - the error namepublic java.lang.String getExceptionMessage()
public Report addToTab(java.lang.String tabName, java.lang.String key, java.lang.Object value)
tabName - the name of the tab to add the key value pair tokey - the key of the metadata to addvalue - the metadata value to addpublic Report clearTab(java.lang.String tabName)
tabName - the name of the tab to clear.public Report setAppInfo(java.lang.String key, java.lang.Object value)
key - the key of app info to addvalue - the value of app info to addpublic Report setApiKey(java.lang.String apiKey)
apiKey - the API key to use in the reportprotected java.lang.String getApiKey()
public Report setContext(java.lang.String context)
context - the context to use in the reportpublic Report setDeviceInfo(java.lang.String key, java.lang.Object value)
key - the key of device info to addvalue - the value of device info to addpublic Report setGroupingHash(java.lang.String groupingHash)
groupingHash - the grouping hash for the error reportpublic Report setSeverity(Severity severity)
severity - the severity for the error reportpublic Report setUser(java.lang.String id, java.lang.String email, java.lang.String name)
id - the identifier of the user.email - the email of the user.name - the name of the user.public Report setUserId(java.lang.String id)
public Report setUserEmail(java.lang.String email)
public Report setUserName(java.lang.String name)
public Report cancel()
public boolean getShouldCancel()