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

See also