toException
Extension function to convert a domain event with error info to a DomainEventException.
Receiver
The domain event containing error information
Return
A new DomainEventException wrapping this domain event
Extension function to convert a domain event with error info to a DomainEventException.
The domain event containing error information
A new DomainEventException wrapping this domain event