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

Constructors

Link copied to clipboard
constructor(domainEvent: DomainEvent<out ErrorInfo>)

Creates a new DomainEventException from a domain event with error info

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The domain event containing error information