support error event trigger.