DomainEventException
Exception wrapper for domain events containing error information.
This exception is thrown when a domain event contains error details that need to be propagated as an exception. It wraps the original domain event and extracts the error code and message from the event body.
See also
Throws
if the domain event body is not ErrorInfo