-
public final class ErrorEvent.ErrorError properties
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classErrorEvent.Error.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate Stringmessageprivate final ErrorEvent.ErrorSourcesourceprivate Stringstackprivate List<ErrorEvent.Cause>causesprivate final BooleanisCrashprivate final Stringtypeprivate final ErrorEvent.Handlinghandlingprivate final StringhandlingStackprivate final ErrorEvent.SourceTypesourceTypeprivate final ErrorEvent.Resourceresource
-
Constructor Summary
Constructors Constructor Description ErrorEvent.Error(String id, String message, ErrorEvent.ErrorSource source, String stack, List<ErrorEvent.Cause> causes, Boolean isCrash, String type, ErrorEvent.Handling handling, String handlingStack, ErrorEvent.SourceType sourceType, ErrorEvent.Resource resource)
-
Method Summary
Modifier and Type Method Description final StringgetId()final StringgetMessage()final UnitsetMessage(String message)final ErrorEvent.ErrorSourcegetSource()final StringgetStack()final UnitsetStack(String stack)final List<ErrorEvent.Cause>getCauses()final UnitsetCauses(List<ErrorEvent.Cause> causes)final BooleangetIsCrash()final StringgetType()final ErrorEvent.HandlinggetHandling()final StringgetHandlingStack()final ErrorEvent.SourceTypegetSourceType()final ErrorEvent.ResourcegetResource()final JsonElementtoJson()-
-
Constructor Detail
-
ErrorEvent.Error
ErrorEvent.Error(String id, String message, ErrorEvent.ErrorSource source, String stack, List<ErrorEvent.Cause> causes, Boolean isCrash, String type, ErrorEvent.Handling handling, String handlingStack, ErrorEvent.SourceType sourceType, ErrorEvent.Resource resource)
- Parameters:
id- UUID of the errormessage- Error messagesource- Source of the errorstack- Stacktrace of the errorcauses- Causes of the errorisCrash- Whether this error crashed the host applicationtype- The type of the errorhandling- Whether the error has been handled manually in the source code or nothandlingStack- Handling call stacksourceType- Source type of the error (the language or platform impacting the error stacktrace format)resource- Resource properties of the error
-
-
Method Detail
-
getMessage
final String getMessage()
-
setMessage
final Unit setMessage(String message)
- Parameters:
message- Error message
-
getSource
final ErrorEvent.ErrorSource getSource()
-
getCauses
final List<ErrorEvent.Cause> getCauses()
-
setCauses
final Unit setCauses(List<ErrorEvent.Cause> causes)
- Parameters:
causes- Causes of the error
-
getIsCrash
final Boolean getIsCrash()
-
getHandling
final ErrorEvent.Handling getHandling()
-
getHandlingStack
final String getHandlingStack()
-
getSourceType
final ErrorEvent.SourceType getSourceType()
-
getResource
final ErrorEvent.Resource getResource()
-
toJson
final JsonElement toJson()
-
-
-
-