Can I write a database event trigger to do work after a dead lock detection?

psydo code-------------------------------------
CREATE OR REPLACE TRIGGER system.deadlock_info
on database AS
-----------------------------------------------

If this is possible can I please have some help with syntax. I have (and will continue to) rifle through the docs.

Thanks