PostgreSQL - Advanced PL/pgSQL
What will be the output of the following PostgreSQL block?
DO $$
BEGIN
RAISE EXCEPTION 'Error happened';
EXCEPTION
WHEN OTHERS THEN
RAISE NOTICE 'Caught an error';
END $$;