Package com.inttegro.diagnostics
Record Class ErrorReport
java.lang.Object
java.lang.Record
com.inttegro.diagnostics.ErrorReport
public record ErrorReport(int schemaVersion, String eventId, String occurredAt, String severity, String category, String operation, ErrorReport.SdkContext sdk, ErrorReport.HttpContext http, ErrorReport.ApiErrorContext apiError, ErrorReport.TraceContext trace, String exceptionType, String fingerprint)
extends Record
A privacy-safe description of a failed Inttegro SDK operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionErrorReport(int schemaVersion, String eventId, String occurredAt, String severity, String category, String operation, ErrorReport.SdkContext sdk, ErrorReport.HttpContext http, ErrorReport.ApiErrorContext apiError, ErrorReport.TraceContext trace, String exceptionType, String fingerprint) Creates an instance of aErrorReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapiError()Returns the value of theapiErrorrecord component.category()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.eventId()Returns the value of theeventIdrecord component.Returns the value of theexceptionTyperecord component.Returns the value of thefingerprintrecord component.final inthashCode()Returns a hash code value for this object.http()Returns the value of thehttprecord component.Returns the value of theoccurredAtrecord component.Returns the value of theoperationrecord component.intReturns the value of theschemaVersionrecord component.sdk()Returns the value of thesdkrecord component.severity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.trace()Returns the value of thetracerecord component.
-
Constructor Details
-
ErrorReport
public ErrorReport(int schemaVersion, String eventId, String occurredAt, String severity, String category, String operation, ErrorReport.SdkContext sdk, ErrorReport.HttpContext http, ErrorReport.ApiErrorContext apiError, ErrorReport.TraceContext trace, String exceptionType, String fingerprint) Creates an instance of aErrorReportrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componenteventId- the value for theeventIdrecord componentoccurredAt- the value for theoccurredAtrecord componentseverity- the value for theseverityrecord componentcategory- the value for thecategoryrecord componentoperation- the value for theoperationrecord componentsdk- the value for thesdkrecord componenthttp- the value for thehttprecord componentapiError- the value for theapiErrorrecord componenttrace- the value for thetracerecord componentexceptionType- the value for theexceptionTyperecord componentfingerprint- the value for thefingerprintrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
schemaVersion
public int schemaVersion()Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
eventId
Returns the value of theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
occurredAt
Returns the value of theoccurredAtrecord component.- Returns:
- the value of the
occurredAtrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
sdk
Returns the value of thesdkrecord component.- Returns:
- the value of the
sdkrecord component
-
http
Returns the value of thehttprecord component.- Returns:
- the value of the
httprecord component
-
apiError
Returns the value of theapiErrorrecord component.- Returns:
- the value of the
apiErrorrecord component
-
trace
Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-
exceptionType
Returns the value of theexceptionTyperecord component.- Returns:
- the value of the
exceptionTyperecord component
-
fingerprint
Returns the value of thefingerprintrecord component.- Returns:
- the value of the
fingerprintrecord component
-