try { 1 div 0 } catch * { "Caught!" }
"Caught!"
let $x := 1 div 0 return try { $x } catch * { "Caught!" }
division by zero
try { x } catch * { "Caught!" }
invalid expression: syntax error, a path expression cannot begin with an axis step
try { "foo" + "bar" } catch * { "Caught!" }
"Caught!"