public abstract class SentryBaseEvent
extends java.lang.Object
SentryEvent
or the Performance
transaction.Modifier and Type | Field and Description |
---|---|
protected @Nullable java.lang.Throwable |
throwable
The captured Throwable
|
Modifier | Constructor and Description |
---|---|
protected |
SentryBaseEvent() |
protected |
SentryBaseEvent(@NotNull SentryId eventId) |
Modifier and Type | Method and Description |
---|---|
@NotNull Contexts |
getContexts() |
java.lang.String |
getEnvironment() |
@Nullable SentryId |
getEventId() |
@Nullable java.lang.Throwable |
getOriginThrowable()
Returns the captured Throwable or null.
|
java.lang.String |
getRelease() |
@Nullable Request |
getRequest() |
@Nullable SdkVersion |
getSdk() |
@Nullable java.lang.String |
getTag(@NotNull java.lang.String key) |
@Nullable java.lang.Throwable |
getThrowable()
Returns the captured Throwable or null
|
void |
removeTag(@NotNull java.lang.String key) |
void |
setEnvironment(java.lang.String environment) |
void |
setEventId(@Nullable SentryId eventId) |
void |
setRelease(java.lang.String release) |
void |
setRequest(@Nullable Request request) |
void |
setSdk(@Nullable SdkVersion sdk) |
void |
setTag(java.lang.String key,
java.lang.String value) |
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags) |
void |
setThrowable(@Nullable java.lang.Throwable throwable)
Sets the Throwable
|
@Nullable protected transient @Nullable java.lang.Throwable throwable
protected SentryBaseEvent(@NotNull @NotNull SentryId eventId)
protected SentryBaseEvent()
@Nullable public @Nullable SentryId getEventId()
public void setEventId(@Nullable @Nullable SentryId eventId)
@NotNull public @NotNull Contexts getContexts()
@Nullable public @Nullable SdkVersion getSdk()
public void setSdk(@Nullable @Nullable SdkVersion sdk)
@Nullable public @Nullable Request getRequest()
public void setRequest(@Nullable @Nullable Request request)
@Nullable public @Nullable java.lang.Throwable getThrowable()
@Nullable public @Nullable java.lang.Throwable getOriginThrowable()
ExceptionMechanismException
, returns unwrapped throwable.public void setThrowable(@Nullable @Nullable java.lang.Throwable throwable)
throwable
- the Throwable or nullpublic void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
public void removeTag(@NotNull @NotNull java.lang.String key)
@Nullable public @Nullable java.lang.String getTag(@NotNull @NotNull java.lang.String key)
public void setTag(java.lang.String key, java.lang.String value)
public java.lang.String getRelease()
public void setRelease(java.lang.String release)
public java.lang.String getEnvironment()
public void setEnvironment(java.lang.String environment)