Source
Exception handler can't access variables declared in BEGIN..END block
FAQ: A Snowflake Scripting block consists of DECLARE, BEGIN ... END and EXCEPTION sections. The EXCEPTION section is optional and should be at the end of the block.
Oracle - PL/SQL to Javascript
This is a translation reference to convert PL/SQL statements to snowflake JavaScript Collections & Records NoteSome parts in the output code are omitted for clarity reasons.