Events interface with a simple onError event (e.g. for use with EventNotifier).
Triggers an error event.