The error instance and other vars can be passed as event data.