Package io.sentry
Class SentryEvent
java.lang.Object
io.sentry.SentryBaseEvent
io.sentry.SentryEvent
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
Nested classes/interfaces inherited from class io.sentry.SentryBaseEvent
SentryBaseEvent.Serializer
-
Field Summary
Fields inherited from class io.sentry.SentryBaseEvent
DEFAULT_PLATFORM, throwable
-
Constructor Summary
ConstructorDescriptionSentryEvent
(@NotNull Date timestamp) SentryEvent
(@Nullable Throwable throwable) SentryEvent ctor with the captured Throwable -
Method Summary
Modifier and TypeMethodDescription@Nullable List<SentryException>
@Nullable SentryLevel
getLevel()
@Nullable String
@Nullable Message
@Nullable String
@Nullable List<SentryThread>
@Nullable String
@Nullable SentryException
boolean
Returns true if any exception was unhandled by the user.boolean
Returns true if this event has any sort of exceptionvoid
removeModule
(@NotNull String key) void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
setExceptions
(@Nullable List<SentryException> exception) void
setFingerprints
(@Nullable List<String> fingerprint) void
setLevel
(@Nullable SentryLevel level) void
void
setMessage
(@Nullable Message message) void
void
setModules
(@Nullable Map<String, String> modules) void
setThreads
(@Nullable List<SentryThread> threads) void
setTimestamp
(@NotNull Date timestamp) void
setTransaction
(@Nullable String transaction) void
setUnknown
(@Nullable Map<String, Object> unknown) Methods inherited from class io.sentry.SentryBaseEvent
addBreadcrumb, addBreadcrumb, getBreadcrumbs, getContexts, getDebugMeta, getDist, getEnvironment, getEventId, getExtra, getExtras, getPlatform, getRelease, getRequest, getSdk, getServerName, getTag, getTags, getThrowable, getThrowableMechanism, getUser, removeExtra, removeTag, setBreadcrumbs, setDebugMeta, setDist, setEnvironment, setEventId, setExtra, setExtras, setPlatform, setRelease, setRequest, setSdk, setServerName, setTag, setTags, setThrowable, setUser
-
Constructor Details
-
SentryEvent
SentryEvent ctor with the captured Throwable- Parameters:
throwable
- the Throwable or null
-
SentryEvent
public SentryEvent() -
SentryEvent
-
-
Method Details
-
getTimestamp
-
setTimestamp
-
getMessage
-
setMessage
-
getLogger
-
setLogger
-
getThreads
-
setThreads
-
getExceptions
-
setExceptions
-
getLevel
-
setLevel
-
getTransaction
-
setTransaction
-
getFingerprints
-
setFingerprints
-
setModules
-
setModule
-
removeModule
-
getModule
-
isCrashed
public boolean isCrashed()Returns true if any exception was unhandled by the user.- Returns:
- true if its crashed or false otherwise
-
getUnhandledException
-
isErrored
public boolean isErrored()Returns true if this event has any sort of exception- Returns:
- true if errored or false otherwise
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-