Error Messages: Unterschied zwischen den Versionen

Aus DRV STRING
Zur Navigation springen Zur Suche springen
Inhalt gelöscht Inhalt hinzugefügt
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 4: Zeile 4:


Errors on the outer level include cases like unavailable operators or invalid content. They are not version-specific.
Errors on the outer level include cases like unavailable operators or invalid content. They are not version-specific.

<syntaxhighlight lang="xml">include example here</syntaxhighlight>


== Errors in Content/Payload ==
== Errors in Content/Payload ==


Errors related to valid requests might be handled "inline" in the matching response if the operator is able to create a response, otherwise an ErrorResponse may be used (<GeneralErrorType> in StringError.xsd).
Errors related to valid requests might be handled "inline" in the matching response if the operator is able to create a response, otherwise an ErrorResponse may be used (<GeneralErrorType> in StringError.xsd).

<syntaxhighlight lang="xml">include example here</syntaxhighlight>


== Errors in Responses ==
== Errors in Responses ==


The response types have their own error fields for informational messages and non-fatal errors. See the documentation of the [[Documentation|queries by category]].
The response types have their own error fields for informational messages and non-fatal errors. See the documentation of the [[Documentation|queries by category]].

<syntaxhighlight lang="xml">include example here</syntaxhighlight>

Version vom 17. Oktober 2019, 10:03 Uhr

Error messages can be sent on three different levels.

Errors in StringMessage

Errors on the outer level include cases like unavailable operators or invalid content. They are not version-specific.

include example here

Errors in Content/Payload

Errors related to valid requests might be handled "inline" in the matching response if the operator is able to create a response, otherwise an ErrorResponse may be used (<GeneralErrorType> in StringError.xsd).

include example here

Errors in Responses

The response types have their own error fields for informational messages and non-fatal errors. See the documentation of the queries by category.

include example here