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:
  • Constructor Details

    • Failure

      public Failure(Message message, Throwable cause)
      Creates an instance of a Failure record class.
      Parameters:
      message - the value for the message record component
      cause - the value for the cause 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.
    • message

      public Message message()
      Returns the value of the message record component.
      Specified by:
      message in interface MessageMonitorReport.Report
      Returns:
      the value of the message record component
    • cause

      public Throwable cause()
      Returns the value of the cause record component.
      Returns:
      the value of the cause record component