-
public final class LogEvent.ErrorThe additional error information in case this log is marked as an error
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLogEvent.Error.Companion
-
Field Summary
Fields Modifier and Type Field Description private Stringkindprivate Stringmessageprivate Stringstackprivate StringsourceTypeprivate Stringfingerprintprivate final List<LogEvent.Thread>threads
-
Constructor Summary
Constructors Constructor Description LogEvent.Error(String kind, String message, String stack, String sourceType, String fingerprint, List<LogEvent.Thread> threads)
-
Method Summary
Modifier and Type Method Description final StringgetKind()final UnitsetKind(String kind)final StringgetMessage()final UnitsetMessage(String message)final StringgetStack()final UnitsetStack(String stack)final StringgetSourceType()final UnitsetSourceType(String sourceType)final StringgetFingerprint()final UnitsetFingerprint(String fingerprint)final List<LogEvent.Thread>getThreads()final JsonElementtoJson()-
-
Constructor Detail
-
LogEvent.Error
LogEvent.Error(String kind, String message, String stack, String sourceType, String fingerprint, List<LogEvent.Thread> threads)
- Parameters:
kind- The kind of this error.message- The error messagestack- The error stack tracesourceType- The source_type of the error (e.g.fingerprint- A custom fingerprint for this errorthreads- Description of each thread in the process when error happened.
-
-
Method Detail
-
getMessage
final String getMessage()
-
setMessage
final Unit setMessage(String message)
- Parameters:
message- The error message
-
getSourceType
final String getSourceType()
-
setSourceType
final Unit setSourceType(String sourceType)
- Parameters:
sourceType- The source_type of the error (e.g.
-
getFingerprint
final String getFingerprint()
-
setFingerprint
final Unit setFingerprint(String fingerprint)
- Parameters:
fingerprint- A custom fingerprint for this error
-
getThreads
final List<LogEvent.Thread> getThreads()
-
toJson
final JsonElement toJson()
-
-
-
-