logHandledException

public void logHandledException(@NonNull() Throwable throwable, @NonNull() LogType type)

Logs a handled exception to the Embrace.io API for aggregation and viewing on the dashboard. The log will include the stacktrace found on the exception.

Parameters

throwable

The handled exception object, which will be serialized and combined with the stack trace to aggregate the errors on the dashboard view.

type

Will flag the message as one of info, warning, or error for filtering on the dashboard


public void logHandledException(    @NonNull() Throwable throwable,     @NonNull() LogType type,     @NonNull() Array<StackTraceElement> customStackTrace)

Logs a handled exception to the Embrace.io API for aggregation and viewing on the dashboard. The log will include the stacktrace found on the exception.

Parameters

throwable

The handled exception object.

type

Will flag the message as one of info, warning, or error for filtering on the dashboard

customStackTrace

A custom Stack Trace to be logged and displayed on the dashboard view.


public void logHandledException(    @NonNull() Throwable throwable,     @NonNull() LogType type,     @NonNull() Map<String, Object> properties)

Logs a handled exception to the Embrace.io API for aggregation and viewing on the dashboard. The log will include the stacktrace found on the exception.

Parameters

throwable

The handled exception object, which will be serialized and combined with the stack trace to aggregate the errors on the dashboard view.

type

Will flag the message as one of info, warning, or error for filtering on the dashboard

properties

An optional dictionary of custom key/value properties to be sent with the error log.


public void logHandledException(    @NonNull() Throwable throwable,     @NonNull() LogType type,     @Nullable() Map<String, Object> properties,     @Nullable() Array<StackTraceElement> customStackTrace,     boolean takeScreenshot)

Logs a handled exception to the Embrace.io API for aggregation and viewing on the dashboard. The log will include the stacktrace found on the exception.

Parameters

throwable

The handled exception object, which will be serialized and combined with the stack trace to aggregate the errors on the dashboard view.

type

Will flag the message as one of info, warning, or error for filtering on the dashboard

properties

An optional dictionary of custom key/value properties to be sent with the error log.

customStackTrace

A custom Stack Trace to be logged and displayed on the dashboard view. If this object is not null, the Exception Stack Trace will be ignored.

takeScreenshot

A flag for whether the SDK should take a screenshot of the application window to display on the dashboard