public class WrapperSdkExceptionManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteWrapperExceptionData(java.util.UUID errorId)
Delete wrapper exception data from disk and store it in memory
|
static com.microsoft.appcenter.utils.async.AppCenterFuture<java.util.Collection<ErrorReport>> |
getUnprocessedErrorReports()
Get unprocessed error reports when automatic processing is disabled.
|
static byte[] |
loadWrapperExceptionData(java.util.UUID errorId)
Load wrapper exception data into memory
|
static java.util.UUID |
saveWrapperException(java.lang.Thread thread,
java.lang.Throwable throwable,
Exception modelException,
byte[] rawSerializedException)
Save a crash from wrapper SDK.
|
static com.microsoft.appcenter.utils.async.AppCenterFuture<java.lang.Boolean> |
sendCrashReportsOrAwaitUserConfirmation(java.util.Collection<java.lang.String> filteredReportIds)
Resume processing of crash reports with the filtered list from
getUnprocessedErrorReports(). |
static void |
sendErrorAttachments(java.lang.String errorReportId,
java.lang.Iterable<ErrorAttachmentLog> attachments)
Send error attachments when automatic processing is disabled.
|
static void |
setAutomaticProcessing(boolean automaticProcessing)
Set whether automatic processing is enabled or not.
|
static void |
trackException(Exception modelException)
Send an handled exception (used by wrapper SDKs).
|
static void |
trackException(Exception modelException,
java.util.Map<java.lang.String,java.lang.String> properties)
Send an handled exception (used by wrapper SDKs).
|
public static java.util.UUID saveWrapperException(java.lang.Thread thread,
java.lang.Throwable throwable,
Exception modelException,
byte[] rawSerializedException)
thread - thread where uncaught exception originated.throwable - Java throwable for client side inspection if available, can be null.modelException - model exception.rawSerializedException - raw exception bytes if available, can be null.public static void deleteWrapperExceptionData(java.util.UUID errorId)
errorId - The associated error UUIDpublic static byte[] loadWrapperExceptionData(java.util.UUID errorId)
errorId - The associated error UUIDpublic static void trackException(Exception modelException)
modelException - An handled exception already in JSON model form.public static void trackException(Exception modelException, java.util.Map<java.lang.String,java.lang.String> properties)
modelException - An handled exception already in JSON model form.properties - optional properties.public static void setAutomaticProcessing(boolean automaticProcessing)
automaticProcessing - true to enable, false otherwise.public static com.microsoft.appcenter.utils.async.AppCenterFuture<java.util.Collection<ErrorReport>> getUnprocessedErrorReports()
public static com.microsoft.appcenter.utils.async.AppCenterFuture<java.lang.Boolean> sendCrashReportsOrAwaitUserConfirmation(java.util.Collection<java.lang.String> filteredReportIds)
getUnprocessedErrorReports().
To use when automatic processing is disabled.filteredReportIds - report identifiers to process, every crash not part of the original list are discarded.public static void sendErrorAttachments(java.lang.String errorReportId,
java.lang.Iterable<ErrorAttachmentLog> attachments)
errorReportId - The crash report identifier for additional information.attachments - instances of ErrorAttachmentLog to be sent for the specified error report.