Good question!
I purposely did not run this in Query Editor, and tried to answer on my own. (I got it right!)
I had to keep in mind that @@ERROR really only applies to the most recent line. From what I saw, SELECT 'XYZ' would not return an error!
+--------------------------------------------------------------------------------------+
Check out my blog at https://pianorayk.wordpress.com/