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
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()@Nullable String@Nullable StringgetMeta()@Nullable Boolean@Nullable StringgetType()@Nullable Booleanvoidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidvoidsetDescription(@Nullable String description) voidsetHandled(@Nullable Boolean handled) voidsetHelpLink(@Nullable String helpLink) voidvoidsetSynthetic(@Nullable Boolean synthetic) voidvoidsetUnknown(@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:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-