From f99156ad2a87f59575c8fc86b8ec58832bb6fd11 Mon Sep 17 00:00:00 2001 From: Natalia Ivakina Date: Tue, 29 Oct 2024 10:45:00 +0100 Subject: [PATCH 1/3] Add standard defined GQLSTATUS codes for data exceptions --- modules/ROOT/pages/errors/gql-errors.adoc | 32 +++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/errors/gql-errors.adoc b/modules/ROOT/pages/errors/gql-errors.adoc index fe85e2be..b5a63530 100644 --- a/modules/ROOT/pages/errors/gql-errors.adoc +++ b/modules/ROOT/pages/errors/gql-errors.adoc @@ -100,6 +100,34 @@ Status description:: error: connection exception - no such routing policy. Polic Database exceptions occur when a client request contains the wrong format, types, or other unsupported input. Some examples are data and constraint creation, which conflicts with existing constraints, properties of non-storable type, and spatial and temporal values with invalid components. +=== 22000 + +Status description:: error: data exception + +=== 22001 + +Status description:: error: data exception - string data, right truncation + +=== 22003 + +Status description:: error: data exception - numeric value out of range. The numeric value { $value } is outside the required range. + +=== 22004 + +Status description:: error: data exception - null value not allowed + +=== 22008 + +Status description:: error: data exception - datetime field overflow + +=== 22G11 + +Status description:: error: data exception - reference value, referent deleted + +=== 22G13 + +Status description:: error: data exception - invalid group variable value + === 22N00 Status description:: error: data exception - unsupported value. The provided value is unsupported and cannot be processed. @@ -435,9 +463,9 @@ Status description:: error: data exception - numeric range 0 disallowed. Expecte // Status description:: error: data exception - numeric range 0 or greater allowed. Expected a number that is zero or greater. -// === 22N88 +=== 22N88 -// Status description:: error: data exception - not a valid CIDR IP. `{ $input }` is not a valid CIDR IP. +Status description:: error: data exception - not a valid CIDR IP. `{ $input }` is not a valid CIDR IP. === 22N89 From d272a2a4b9922aea079eeacabd0bd73068103592 Mon Sep 17 00:00:00 2001 From: NataliaIvakina <82437520+NataliaIvakina@users.noreply.github.com> Date: Tue, 29 Oct 2024 14:18:39 +0100 Subject: [PATCH 2/3] Update modules/ROOT/pages/errors/gql-errors.adoc Co-authored-by: Louise Berglund --- modules/ROOT/pages/errors/gql-errors.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/pages/errors/gql-errors.adoc b/modules/ROOT/pages/errors/gql-errors.adoc index b5a63530..29804592 100644 --- a/modules/ROOT/pages/errors/gql-errors.adoc +++ b/modules/ROOT/pages/errors/gql-errors.adoc @@ -110,7 +110,7 @@ Status description:: error: data exception - string data, right truncation === 22003 -Status description:: error: data exception - numeric value out of range. The numeric value { $value } is outside the required range. +Status description:: error: data exception - numeric value out of range. The numeric value `{ $value }` is outside the required range. === 22004 From 4566ae933db49358b6b701a2963d1f3a42afd176 Mon Sep 17 00:00:00 2001 From: NataliaIvakina <82437520+NataliaIvakina@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:06:08 +0100 Subject: [PATCH 3/3] Remove not implemented GQLSTATUS codes --- modules/ROOT/pages/errors/gql-errors.adoc | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/modules/ROOT/pages/errors/gql-errors.adoc b/modules/ROOT/pages/errors/gql-errors.adoc index 29804592..e1b5ae52 100644 --- a/modules/ROOT/pages/errors/gql-errors.adoc +++ b/modules/ROOT/pages/errors/gql-errors.adoc @@ -104,30 +104,10 @@ Some examples are data and constraint creation, which conflicts with existing co Status description:: error: data exception -=== 22001 - -Status description:: error: data exception - string data, right truncation - === 22003 Status description:: error: data exception - numeric value out of range. The numeric value `{ $value }` is outside the required range. -=== 22004 - -Status description:: error: data exception - null value not allowed - -=== 22008 - -Status description:: error: data exception - datetime field overflow - -=== 22G11 - -Status description:: error: data exception - reference value, referent deleted - -=== 22G13 - -Status description:: error: data exception - invalid group variable value - === 22N00 Status description:: error: data exception - unsupported value. The provided value is unsupported and cannot be processed.