Record Class ExceptionRecordDto

java.lang.Object
java.lang.Record
io.datarouter.instrumentation.exception.ExceptionRecordDto
All Implemented Interfaces:
TaskExecutionRecordDto

public record ExceptionRecordDto(String id, Date created, String serviceName, String serverName, String category, String name, String stackTrace, String type, String appVersion, String exceptionLocation, String methodName, Integer lineNumber, String callOrigin, List<String> additionalAlertRecipients) extends Record implements TaskExecutionRecordDto
  • Field Details

    • STACK_TRACE_LENGTH_LIMIT

      public static final int STACK_TRACE_LENGTH_LIMIT
      See Also:
  • Constructor Details

    • ExceptionRecordDto

      public ExceptionRecordDto(String id, Date created, String serviceName, String serverName, String category, String name, String stackTrace, String type, String appVersion, String exceptionLocation, String methodName, Integer lineNumber, String callOrigin, List<String> additionalAlertRecipients)
      Creates an instance of a ExceptionRecordDto record class.
      Parameters:
      id - the value for the id record component
      created - the value for the created record component
      serviceName - the value for the serviceName record component
      serverName - the value for the serverName record component
      category - the value for the category record component
      name - the value for the name record component
      stackTrace - the value for the stackTrace record component
      type - the value for the type record component
      appVersion - the value for the appVersion record component
      exceptionLocation - the value for the exceptionLocation record component
      methodName - the value for the methodName record component
      lineNumber - the value for the lineNumber record component
      callOrigin - the value for the callOrigin record component
      additionalAlertRecipients - the value for the additionalAlertRecipients 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • created

      public Date created()
      Returns the value of the created record component.
      Returns:
      the value of the created record component
    • serviceName

      public String serviceName()
      Returns the value of the serviceName record component.
      Returns:
      the value of the serviceName record component
    • serverName

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

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

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • stackTrace

      public String stackTrace()
      Returns the value of the stackTrace record component.
      Returns:
      the value of the stackTrace record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • appVersion

      public String appVersion()
      Returns the value of the appVersion record component.
      Returns:
      the value of the appVersion record component
    • exceptionLocation

      public String exceptionLocation()
      Returns the value of the exceptionLocation record component.
      Returns:
      the value of the exceptionLocation record component
    • methodName

      public String methodName()
      Returns the value of the methodName record component.
      Returns:
      the value of the methodName record component
    • lineNumber

      public Integer lineNumber()
      Returns the value of the lineNumber record component.
      Returns:
      the value of the lineNumber record component
    • callOrigin

      public String callOrigin()
      Returns the value of the callOrigin record component.
      Returns:
      the value of the callOrigin record component
    • additionalAlertRecipients

      public List<String> additionalAlertRecipients()
      Returns the value of the additionalAlertRecipients record component.
      Returns:
      the value of the additionalAlertRecipients record component