-
public final class ErrorEvent.ErrorError properties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classErrorEvent.Error.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate Stringmessageprivate final ErrorEvent.ErrorSourcesourceprivate Stringstackprivate List<ErrorEvent.Cause>causesprivate final BooleanisCrashprivate Stringfingerprintprivate final Stringtypeprivate final ErrorEvent.Categorycategoryprivate final ErrorEvent.Handlinghandlingprivate final StringhandlingStackprivate final ErrorEvent.SourceTypesourceTypeprivate final ErrorEvent.Resourceresourceprivate final List<ErrorEvent.Thread>threadsprivate final List<ErrorEvent.BinaryImage>binaryImagesprivate final BooleanwasTruncatedprivate final ErrorEvent.Metametaprivate final ErrorEvent.Cspcspprivate final LongtimeSinceAppStart
-
Constructor Summary
Constructors Constructor Description ErrorEvent.Error(String id, String message, ErrorEvent.ErrorSource source, String stack, List<ErrorEvent.Cause> causes, Boolean isCrash, String fingerprint, String type, ErrorEvent.Category category, ErrorEvent.Handling handling, String handlingStack, ErrorEvent.SourceType sourceType, ErrorEvent.Resource resource, List<ErrorEvent.Thread> threads, List<ErrorEvent.BinaryImage> binaryImages, Boolean wasTruncated, ErrorEvent.Meta meta, ErrorEvent.Csp csp, Long timeSinceAppStart)
-
Method Summary
Modifier and Type Method Description final StringgetId()final StringgetMessage()final UnitsetMessage(String message)final ErrorEvent.ErrorSourcegetSource()final StringgetStack()final UnitsetStack(String stack)final List<ErrorEvent.Cause>getCauses()final UnitsetCauses(List<ErrorEvent.Cause> causes)final BooleangetIsCrash()final StringgetFingerprint()final UnitsetFingerprint(String fingerprint)final StringgetType()final ErrorEvent.CategorygetCategory()final ErrorEvent.HandlinggetHandling()final StringgetHandlingStack()final ErrorEvent.SourceTypegetSourceType()final ErrorEvent.ResourcegetResource()final List<ErrorEvent.Thread>getThreads()final List<ErrorEvent.BinaryImage>getBinaryImages()final BooleangetWasTruncated()final ErrorEvent.MetagetMeta()final ErrorEvent.CspgetCsp()final LonggetTimeSinceAppStart()final JsonElementtoJson()-
-
Constructor Detail
-
ErrorEvent.Error
ErrorEvent.Error(String id, String message, ErrorEvent.ErrorSource source, String stack, List<ErrorEvent.Cause> causes, Boolean isCrash, String fingerprint, String type, ErrorEvent.Category category, ErrorEvent.Handling handling, String handlingStack, ErrorEvent.SourceType sourceType, ErrorEvent.Resource resource, List<ErrorEvent.Thread> threads, List<ErrorEvent.BinaryImage> binaryImages, Boolean wasTruncated, ErrorEvent.Meta meta, ErrorEvent.Csp csp, Long timeSinceAppStart)
- Parameters:
id- UUID of the errormessage- Error messagesource- Source of the errorstack- Stacktrace of the errorcauses- Causes of the errorisCrash- Whether this error crashed the host applicationfingerprint- Fingerprint used for Error Tracking custom groupingtype- The type of the errorcategory- The specific category of the error.handling- Whether the error has been handled manually in the source code or nothandlingStack- Handling call stacksourceType- Source type of the error (the language or platform impacting the error stacktrace format)resource- Resource properties of the errorthreads- Description of each thread in the process when error happened.binaryImages- Description of each binary image (native libraries; for Android: .so files) loaded or referenced by the process/application.wasTruncated- A boolean value saying if any of the stack traces was truncated due to minification.meta- Platform-specific metadata of the error event.csp- Content Security Violation propertiestimeSinceAppStart- Time since application start when error happened (in milliseconds)
-
-
Method Detail
-
getMessage
final String getMessage()
-
setMessage
final Unit setMessage(String message)
- Parameters:
message- Error message
-
getSource
final ErrorEvent.ErrorSource getSource()
-
getCauses
final List<ErrorEvent.Cause> getCauses()
-
setCauses
final Unit setCauses(List<ErrorEvent.Cause> causes)
- Parameters:
causes- Causes of the error
-
getIsCrash
final Boolean getIsCrash()
-
getFingerprint
final String getFingerprint()
-
setFingerprint
final Unit setFingerprint(String fingerprint)
- Parameters:
fingerprint- Fingerprint used for Error Tracking custom grouping
-
getCategory
final ErrorEvent.Category getCategory()
-
getHandling
final ErrorEvent.Handling getHandling()
-
getHandlingStack
final String getHandlingStack()
-
getSourceType
final ErrorEvent.SourceType getSourceType()
-
getResource
final ErrorEvent.Resource getResource()
-
getThreads
final List<ErrorEvent.Thread> getThreads()
-
getBinaryImages
final List<ErrorEvent.BinaryImage> getBinaryImages()
-
getWasTruncated
final Boolean getWasTruncated()
-
getMeta
final ErrorEvent.Meta getMeta()
-
getCsp
final ErrorEvent.Csp getCsp()
-
getTimeSinceAppStart
final Long getTimeSinceAppStart()
-
toJson
final JsonElement toJson()
-
-
-
-