Package com.persequor.extension.issue
Record Class UnhandledExceptionData
java.lang.Object
java.lang.Record
com.persequor.extension.issue.UnhandledExceptionData
- Record Components:
when
- The time the exception occurredcontextType
- The context in which the exception occurred, aExecutionContextType
exception
- The exception that occurred
public record UnhandledExceptionData(@Nonnull Instant when, @Nonnull ExecutionContextType contextType, @Nonnull Throwable exception)
extends Record
Data class for unhandled exceptions
-
Constructor Summary
ConstructorsConstructorDescriptionUnhandledExceptionData
(Instant when, ExecutionContextType contextType, Throwable exception) Creates an instance of aUnhandledExceptionData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextType
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexception
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.when()
Returns the value of thewhen
record component.
-
Constructor Details
-
UnhandledExceptionData
public UnhandledExceptionData(@Nonnull Instant when, @Nonnull ExecutionContextType contextType, @Nonnull Throwable exception) Creates an instance of aUnhandledExceptionData
record class.- Parameters:
when
- the value for thewhen
record componentcontextType
- the value for thecontextType
record componentexception
- the value for theexception
record 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)
. -
when
Returns the value of thewhen
record component.- Returns:
- the value of the
when
record component
-
contextType
Returns the value of thecontextType
record component.- Returns:
- the value of the
contextType
record component
-
exception
Returns the value of theexception
record component.- Returns:
- the value of the
exception
record component
-