Class TooManyTagsOnEventMessageException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.axonframework.eventsourcing.eventstore.TooManyTagsOnEventMessageException
All Implemented Interfaces:
Serializable

public class TooManyTagsOnEventMessageException extends IllegalArgumentException
Exception indicating that an Event could not be appended to the event store because it contains more tags than the storage engine can support.
Since:
5.0.0
Author:
Allard Buijze
See Also:
  • Constructor Details

    • TooManyTagsOnEventMessageException

      public TooManyTagsOnEventMessageException(String message, EventMessage eventMessage, Set<Tag> tags)
      Initialize the exception with given explanatory message for logging, referencing the given eventMessage and tags for debug purposes.
      Parameters:
      message - The message describing the exception.
      eventMessage - The violating message.
      tags - The tags assigned to the message.
  • Method Details

    • eventMessage

      public EventMessage eventMessage()
      Returns the message that was rejected by the storage engine.
      Returns:
      the message that was rejected by the storage engine.
    • tags

      public Set<Tag> tags()
      Returns the tags assigned to the message.
      Returns:
      the tags assigned to the message.