Package backtraceio.library.interfaces
Interface Client
- All Known Implementing Classes:
BacktraceBase
,BacktraceClient
public interface Client
Client interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String key, Object value) Adds new attribute to the client.void
addAttribute
(Map<String, Object> attributes) Adds new attributes to the client.void
Capture unhandled native exceptions (Backtrace database integration is required to enable this feature).void
send
(BacktraceReport report) Send new report to a Backtrace API
-
Method Details
-
send
Send new report to a Backtrace API- Parameters:
report
- data which should be send to Backtrace API
-
enableNativeIntegration
void enableNativeIntegration()Capture unhandled native exceptions (Backtrace database integration is required to enable this feature). -
addAttribute
Adds new attributes to the client. If the native integration is available and attributes are primitive type, they will be added to the native reports.- Parameters:
attributes
- client Attributes
-
addAttribute
Adds new attribute to the client. If the native integration is available and attributes are primitive type, they will be added to the native reports.- Parameters:
key
- attribute keyvalue
- attribute value
-