From 7bc223ad6408a36072b5196fbf0dcc7de15b0984 Mon Sep 17 00:00:00 2001 From: defanor Date: Tue, 15 Jan 2019 16:03:31 +0300 Subject: Improve error messages - ResultError gets handled now - No plain textual messages anymore - An XML namespace is set, though an experimental one Maybe the serialization should be changed to simplify templating. It would also be nice to specify the schema (e.g., with relax ng), host it, and use its URI for the namespace. --- example/common.xsl | 57 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 47 insertions(+), 10 deletions(-) (limited to 'example') diff --git a/example/common.xsl b/example/common.xsl index 1db0229..ff456a3 100644 --- a/example/common.xsl +++ b/example/common.xsl @@ -2,6 +2,7 @@ @@ -17,23 +18,59 @@ - +

SQL error

State
-
+
Status
-
+
Message
-
+
Detail
-
+
Hint
-
-
Query template
-
-
Query parameters
-
+
+
+
+ + +

Result error

+
+
Message
+
+
+
+ + +

Query error

+
+
Message
+
+
Query
+
+
+
+ + +

Format error

+
+
Message
+
+
Query
+
+
Parameters
+ +
+
+
+
+ + +

Error

+
+
Message
+
-- cgit v1.2.3