Package io.sentry
Class SentryBaseEvent
java.lang.Object
io.sentry.SentryBaseEvent
- Direct Known Subclasses:
SentryEvent
,SentryReplayEvent
,SentryTransaction
An item sent to Sentry in the envelope. Can be either
SentryEvent
or the Performance
transaction.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
static final class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBreadcrumb
(@NotNull Breadcrumb breadcrumb) void
addBreadcrumb
(@Nullable String message) @Nullable List<Breadcrumb>
@NotNull Contexts
@Nullable DebugMeta
@Nullable String
getDist()
@Nullable String
@Nullable SentryId
@Nullable Object
@Nullable String
@Nullable String
@Nullable Request
@Nullable SdkVersion
getSdk()
@Nullable String
@Nullable String
getTags()
@Nullable Throwable
Returns the captured Throwable or null.@Nullable Throwable
Returns the captured Throwable or null.@Nullable User
getUser()
void
removeExtra
(@NotNull String key) void
void
setBreadcrumbs
(@Nullable List<Breadcrumb> breadcrumbs) void
setDebugMeta
(@Nullable DebugMeta debugMeta) void
void
setEnvironment
(@Nullable String environment) void
setEventId
(@Nullable SentryId eventId) void
void
void
setPlatform
(@Nullable String platform) void
setRelease
(@Nullable String release) void
setRequest
(@Nullable Request request) void
setSdk
(@Nullable SdkVersion sdk) void
setServerName
(@Nullable String serverName) void
void
void
setThrowable
(@Nullable Throwable throwable) Sets the Throwablevoid
-
Field Details
-
DEFAULT_PLATFORM
- See Also:
-
throwable
The captured Throwable
-
-
Constructor Details
-
SentryBaseEvent
-
SentryBaseEvent
protected SentryBaseEvent()
-
-
Method Details
-
getEventId
-
setEventId
-
getContexts
-
getSdk
-
setSdk
-
getRequest
-
setRequest
-
getThrowable
Returns the captured Throwable or null. If a throwable is wrapped inExceptionMechanismException
, returns unwrapped throwable.- Returns:
- the Throwable or null
-
getThrowableMechanism
Returns the captured Throwable or null. It may be wrapped in aExceptionMechanismException
.- Returns:
- the Throwable or null
-
setThrowable
Sets the Throwable- Parameters:
throwable
- the Throwable or null
-
getTags
-
setTags
-
removeTag
-
getTag
-
setTag
-
getRelease
-
setRelease
-
getEnvironment
-
setEnvironment
-
getPlatform
-
setPlatform
-
getServerName
-
setServerName
-
getDist
-
setDist
-
getUser
-
setUser
-
getBreadcrumbs
-
setBreadcrumbs
-
addBreadcrumb
-
getDebugMeta
-
setDebugMeta
-
getExtras
-
setExtras
-
setExtra
-
removeExtra
-
getExtra
-
addBreadcrumb
-