Package backtraceio.library.models.json
Class BacktraceReport
java.lang.Object
backtraceio.library.models.json.BacktraceReport
Captured application error
-
Field Summary
FieldsModifier and TypeFieldDescriptionGet all paths to attachmentsGet an report attributesGet a report classificationCurrent report exception stackGet a report exceptionGet information about report type.Get a custom client messagelong
UTC timestamp in seconds16 bytes of randomness in human readable UUID format server will reject request if uuid is already found -
Constructor Summary
ConstructorsConstructorDescriptionBacktraceReport
(Exception exception) Create new instance of Backtrace report to send a report with application exceptionBacktraceReport
(Exception exception, List<String> attachmentPaths) Create new instance of Backtrace report to send a report with application exception, attributes and attachmentsBacktraceReport
(Exception exception, Map<String, Object> attributes) Create new instance of Backtrace report to send a report with application exception and attributesCreate new instance of Backtrace report to send a report with application exception, attributes and attachmentsBacktraceReport
(String message) Create new instance of Backtrace report to send a report with custom client messageBacktraceReport
(String message, List<String> attachmentPaths) Create new instance of Backtrace report to send a report with custom client message, attributes and attachmentsBacktraceReport
(String message, Map<String, Object> attributes) Create new instance of Backtrace report to send a report with custom client message and attributesCreate new instance of Backtrace report to send a report with custom client message, attributes and attachments -
Method Summary
Modifier and TypeMethodDescriptionconcatAttributes
(BacktraceReport report, Map<String, Object> attributes) Concat two dictionaries with attributesgetExceptionClassifier
(Exception exception) toBacktraceData
(android.content.Context context, Map<String, Object> clientAttributes) toBacktraceData
(android.content.Context context, Map<String, Object> clientAttributes, boolean isProguardEnabled)
-
Field Details
-
uuid
16 bytes of randomness in human readable UUID format server will reject request if uuid is already found -
timestamp
public long timestampUTC timestamp in seconds -
exceptionTypeReport
Get information about report type. If value is true the BacktraceReport has an error -
classifier
Get a report classification -
attributes
Get an report attributes -
message
Get a custom client message -
exception
Get a report exception -
attachmentPaths
Get all paths to attachments -
diagnosticStack
Current report exception stack
-
-
Constructor Details
-
BacktraceReport
Create new instance of Backtrace report to send a report with custom client message- Parameters:
message
- custom client message
-
BacktraceReport
Create new instance of Backtrace report to send a report with custom client message and attributes- Parameters:
message
- custom client messageattributes
- additional information about application state
-
BacktraceReport
Create new instance of Backtrace report to send a report with custom client message, attributes and attachments- Parameters:
message
- custom client messageattachmentPaths
- path to all report attachments
-
BacktraceReport
Create new instance of Backtrace report to send a report with custom client message, attributes and attachments- Parameters:
message
- custom client messageattributes
- additional information about application stateattachmentPaths
- path to all report attachments
-
BacktraceReport
Create new instance of Backtrace report to send a report with application exception- Parameters:
exception
- current exception
-
BacktraceReport
Create new instance of Backtrace report to send a report with application exception and attributes- Parameters:
exception
- current exceptionattributes
- additional information about application state
-
BacktraceReport
Create new instance of Backtrace report to send a report with application exception, attributes and attachments- Parameters:
exception
- current exceptionattachmentPaths
- path to all report attachments
-
BacktraceReport
public BacktraceReport(Exception exception, Map<String, Object> attributes, List<String> attachmentPaths) Create new instance of Backtrace report to send a report with application exception, attributes and attachments- Parameters:
exception
- current exceptionattributes
- additional information about application stateattachmentPaths
- path to all report attachments
-
-
Method Details
-
getExceptionClassifier
-
concatAttributes
public static Map<String,Object> concatAttributes(BacktraceReport report, Map<String, Object> attributes) Concat two dictionaries with attributes- Parameters:
report
- current reportattributes
- attributes to concatenate- Returns:
- concatenated map of attributes from report and from passed attributes
-
toBacktraceData
public BacktraceData toBacktraceData(android.content.Context context, Map<String, Object> clientAttributes) -
toBacktraceData
public BacktraceData toBacktraceData(android.content.Context context, Map<String, Object> clientAttributes, boolean isProguardEnabled)
-