Interface Client

All Known Implementing Classes:
BacktraceBase, BacktraceClient

public interface Client
Client interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAttribute(String key, Object value)
    Adds new attribute to the client.
    void
    Adds new attributes to the client.
    void
    Capture unhandled native exceptions (Backtrace database integration is required to enable this feature).
    void
    Send new report to a Backtrace API
  • Method Details

    • send

      void send(BacktraceReport report)
      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

      void addAttribute(Map<String,Object> attributes)
      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

      void addAttribute(String key, Object value)
      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 key
      value - attribute value