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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExceptionRecordDto(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 aExceptionRecordDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalAlertRecipientsrecord component.Returns the value of theappVersionrecord component.Returns the value of thecallOriginrecord component.category()Returns the value of thecategoryrecord component.created()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionLocationrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thelineNumberrecord component.Returns the value of themethodNamerecord component.name()Returns the value of thenamerecord component.Returns the value of theserverNamerecord component.Returns the value of theserviceNamerecord component.Returns the value of thestackTracerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
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 aExceptionRecordDtorecord class.- Parameters:
id- the value for theidrecord componentcreated- the value for thecreatedrecord componentserviceName- the value for theserviceNamerecord componentserverName- the value for theserverNamerecord componentcategory- the value for thecategoryrecord componentname- the value for thenamerecord componentstackTrace- the value for thestackTracerecord componenttype- the value for thetyperecord componentappVersion- the value for theappVersionrecord componentexceptionLocation- the value for theexceptionLocationrecord componentmethodName- the value for themethodNamerecord componentlineNumber- the value for thelineNumberrecord componentcallOrigin- the value for thecallOriginrecord componentadditionalAlertRecipients- the value for theadditionalAlertRecipientsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
stackTrace
Returns the value of thestackTracerecord component.- Returns:
- the value of the
stackTracerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
appVersion
Returns the value of theappVersionrecord component.- Returns:
- the value of the
appVersionrecord component
-
exceptionLocation
Returns the value of theexceptionLocationrecord component.- Returns:
- the value of the
exceptionLocationrecord component
-
methodName
Returns the value of themethodNamerecord component.- Returns:
- the value of the
methodNamerecord component
-
lineNumber
Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-
callOrigin
Returns the value of thecallOriginrecord component.- Returns:
- the value of the
callOriginrecord component
-
additionalAlertRecipients
Returns the value of theadditionalAlertRecipientsrecord component.- Returns:
- the value of the
additionalAlertRecipientsrecord component
-