Class MessageTypeNotResolvedException

All Implemented Interfaces:
Serializable

public class MessageTypeNotResolvedException extends AxonException
Exception thrown when a MessageTypeResolver is unable to determine the MessageType for a given payload type. This typically occurs when a resolver lacks a mapping for the requested type or when no compatible resolver is available in the fallback chain.

This exception indicates a configuration issue where message types have not been properly registered for all payloads that might be resolved.

Since:
5.0.0
Author:
Mateusz Nowak
See Also:
  • Constructor Details

    • MessageTypeNotResolvedException

      public MessageTypeNotResolvedException(String message)
      Initializes a new instance with the given error message.
      Parameters:
      message - The message describing the error that caused this exception.