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.
  • 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 a ErrorReport record class.
      Parameters:
      schemaVersion - the value for the schemaVersion record component
      eventId - the value for the eventId record component
      occurredAt - the value for the occurredAt record component
      severity - the value for the severity record component
      category - the value for the category record component
      operation - the value for the operation record component
      sdk - the value for the sdk record component
      http - the value for the http record component
      apiError - the value for the apiError record component
      trace - the value for the trace record component
      exceptionType - the value for the exceptionType record component
      fingerprint - the value for the fingerprint record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • schemaVersion

      public int schemaVersion()
      Returns the value of the schemaVersion record component.
      Returns:
      the value of the schemaVersion record component
    • eventId

      public String eventId()
      Returns the value of the eventId record component.
      Returns:
      the value of the eventId record component
    • occurredAt

      public String occurredAt()
      Returns the value of the occurredAt record component.
      Returns:
      the value of the occurredAt record component
    • severity

      public String severity()
      Returns the value of the severity record component.
      Returns:
      the value of the severity record component
    • category

      public String category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • operation

      public String operation()
      Returns the value of the operation record component.
      Returns:
      the value of the operation record component
    • sdk

      public ErrorReport.SdkContext sdk()
      Returns the value of the sdk record component.
      Returns:
      the value of the sdk record component
    • http

      public ErrorReport.HttpContext http()
      Returns the value of the http record component.
      Returns:
      the value of the http record component
    • apiError

      public ErrorReport.ApiErrorContext apiError()
      Returns the value of the apiError record component.
      Returns:
      the value of the apiError record component
    • trace

      public ErrorReport.TraceContext trace()
      Returns the value of the trace record component.
      Returns:
      the value of the trace record component
    • exceptionType

      public String exceptionType()
      Returns the value of the exceptionType record component.
      Returns:
      the value of the exceptionType record component
    • fingerprint

      public String fingerprint()
      Returns the value of the fingerprint record component.
      Returns:
      the value of the fingerprint record component