Created
October 12, 2017 17:46
-
-
Save joewiz/82c4e0631723e859ce8dead34321ea9e to your computer and use it in GitHub Desktop.
XQuery 3.0 try/catch boilerplate, returning all error variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.1"; | |
try { | |
fn:error() | |
} catch * { | |
map { | |
"code": $err:code, | |
"description": $err:description, | |
"value": $err:value, | |
"module": $err:module, | |
"line-number": $err:line-number, | |
"column-number": $err:column-number, | |
"additional": $err:additional | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment