Creates a new system error event.
Error event data
The function/method where the error occurred
OptionalextraData?: unknownAdditional context about the error
Human-readable error message
OptionalshouldNotify?: booleanWhether to send external notifications (defaults to false)
HTTP status code representing the error severity
OptionaluserId?: stringThe user affected (defaults to "system")
Domain event for system errors.
Remarks
Used to track and notify about system-level errors. The shouldNotify flag controls whether external notifications (e.g., Pushover) are sent.
Example
See