summaryrefslogtreecommitdiff
path: root/core/api-common.rst
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-25 15:11:28 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-25 15:11:28 +0200
commitc6d35da32576000f5c713cb256d515e2cb1c6774 (patch)
treecdc5f50a1e17e298394f61cc1b902536c90716cd /core/api-common.rst
parent98f90d33f2b7d9174714257d92905fa5153125bf (diff)
downloaddocs-c6d35da32576000f5c713cb256d515e2cb1c6774.tar.gz
docs-c6d35da32576000f5c713cb256d515e2cb1c6774.tar.bz2
docs-c6d35da32576000f5c713cb256d515e2cb1c6774.zip
clarify generic error message format (for #6432)
Diffstat (limited to 'core/api-common.rst')
-rw-r--r--core/api-common.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/api-common.rst b/core/api-common.rst
index ed799e96..7796bdec 100644
--- a/core/api-common.rst
+++ b/core/api-common.rst
@@ -89,13 +89,16 @@ handle the error as if an internal error (500) had been returned.
interface ErrorDetail {
// Numeric `error code <error-codes>` unique to the condition.
+ // The other arguments are specific to the error value reported here.
code: number;
// Human-readable description of the error, i.e. "missing parameter", "commitment violation", ...
- // The other arguments are specific to the error value reported here.
- // Should give a human-readable hint about the error's nature. Optional.
+ // Should give a human-readable hint about the error's nature. Optional, may change without notice!
hint?: string;
+ // Optional detail about the specific input value that failed. May change without notice!
+ detail?: string;
+
// Name of the parameter that was bogus (if applicable)
parameter?: string;