Package org.axonframework.test.util
Record Class MessageMonitorReport.Report.Failure
java.lang.Object
java.lang.Record
org.axonframework.test.util.MessageMonitorReport.Report.Failure
- Record Components:
message- The message associated with the failure.cause- The exception that caused the failure.
- All Implemented Interfaces:
MessageMonitorReport.Report
- Enclosing interface:
MessageMonitorReport.Report
public static record MessageMonitorReport.Report.Failure(Message message, Throwable cause)
extends Record
implements MessageMonitorReport.Report
Represents a failure report indicating an error occurred during the processing of a message. This record
provides details about the associated message and the underlying cause of the failure.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.axonframework.test.util.MessageMonitorReport.Report
MessageMonitorReport.Report.Failure, MessageMonitorReport.Report.Ignored, MessageMonitorReport.Report.Success -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
message
Returns the value of themessagerecord component.- Specified by:
messagein interfaceMessageMonitorReport.Report- Returns:
- the value of the
messagerecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-