public final class Breadcrumb extends java.lang.Object implements java.lang.Cloneable, IUnknownPropertiesConsumer
| Constructor and Description |
|---|
Breadcrumb()
Breadcrumb ctor
|
Breadcrumb(@Nullable java.lang.String message)
Breadcrumb ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptUnknownProperties(@Nullable java.util.Map<java.lang.String,java.lang.Object> unknown)
Sets the unknown fields, internal usage only
|
@NotNull Breadcrumb |
clone()
Clones the breadcrumb aka deep copy
|
@Nullable java.lang.String |
getCategory()
Returns the category
|
@Nullable java.lang.Object |
getData(@NotNull java.lang.String key)
Returns the value of data[key] or null
|
@Nullable SentryLevel |
getLevel()
Returns the SentryLevel
|
@Nullable java.lang.String |
getMessage()
Returns the message
|
@NotNull java.util.Date |
getTimestamp()
Returns the Breadcrumb's timestamp
|
@Nullable java.lang.String |
getType()
Returns the type
|
void |
removeData(@NotNull java.lang.String key)
Removes an entry from the data's map
|
void |
setCategory(@Nullable java.lang.String category)
Sets the category
|
void |
setData(@NotNull java.lang.String key,
@NotNull java.lang.Object value)
Sets an entry to the data's map
|
void |
setLevel(@Nullable SentryLevel level)
Sets the level
|
void |
setMessage(@Nullable java.lang.String message)
Sets the message
|
void |
setType(@Nullable java.lang.String type)
Sets the type
|
public Breadcrumb()
public Breadcrumb(@Nullable
@Nullable java.lang.String message)
message - the message@NotNull public @NotNull java.util.Date getTimestamp()
@Nullable public @Nullable java.lang.String getMessage()
public void setMessage(@Nullable
@Nullable java.lang.String message)
message - the message@Nullable public @Nullable java.lang.String getType()
public void setType(@Nullable
@Nullable java.lang.String type)
type - the type@Nullable
public @Nullable java.lang.Object getData(@NotNull
@NotNull java.lang.String key)
key - the keypublic void setData(@NotNull
@NotNull java.lang.String key,
@NotNull
@NotNull java.lang.Object value)
key - the keyvalue - the valuepublic void removeData(@NotNull
@NotNull java.lang.String key)
key - the key@Nullable public @Nullable java.lang.String getCategory()
public void setCategory(@Nullable
@Nullable java.lang.String category)
category - the category@Nullable public @Nullable SentryLevel getLevel()
public void setLevel(@Nullable
@Nullable SentryLevel level)
level - the level@ApiStatus.Internal
public void acceptUnknownProperties(@Nullable
@Nullable java.util.Map<java.lang.String,java.lang.Object> unknown)
acceptUnknownProperties in interface IUnknownPropertiesConsumerunknown - the unknown's map@NotNull public @NotNull Breadcrumb clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - if a breadcrumb is not cloneable