Skip to content

TurnError

The settled turn-failure object: {kind, message, retryable}.

  • kind
  • message
  • quota
  • retryable
Source

schema/msp/experimental/msp.schema.json#/types/TurnError

{
"description": "The settled turn-failure object: `{kind, message,\nretryable}`.",
"properties": {
"kind": {
"$ref": "#/$defs/TurnErrorKind",
"description": "The failure class (open camelCase enum grounded in the runtime's\nterminal failure classification)."
},
"message": {
"description": "Human-readable failure text.",
"type": "string"
},
"quota": {
"$ref": "#/$defs/QuotaDetail",
"description": "Typed quota-exhaustion detail (ADR 50047 D2/D3): present iff the\nstopping failure was the quota class. Clients branch on presence,\nnever by parsing `message`."
},
"retryable": {
"description": "The server's judgment that resubmitting the same input may succeed.",
"type": "boolean"
}
},
"required": [
"kind",
"message",
"retryable"
],
"type": "object"
}