Package io.sentry.protocol
Class Mechanism
java.lang.Object
io.sentry.protocol.Mechanism
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
The mechanism by which an exception was generated and handled.
The exception mechanism is an optional field residing in the [exception](#typedef-Exception). It carries additional information about the way the exception was created on the target system. This includes general exception values obtained from the operating system or runtime APIs, as well as mechanism-specific values.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
@Nullable String
@Nullable String
getMeta()
@Nullable Boolean
@Nullable String
getType()
@Nullable Boolean
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
void
setDescription
(@Nullable String description) void
setHandled
(@Nullable Boolean handled) void
setHelpLink
(@Nullable String helpLink) void
void
setSynthetic
(@Nullable Boolean synthetic) void
void
setUnknown
(@Nullable Map<String, Object> unknown)
-
Constructor Details
-
Mechanism
public Mechanism() -
Mechanism
-
-
Method Details
-
getType
-
setType
-
getDescription
-
setDescription
-
getHelpLink
-
setHelpLink
-
isHandled
-
setHandled
-
getMeta
-
setMeta
-
getData
-
setData
-
getSynthetic
-
setSynthetic
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-