Expand description
What a Suotar per-item code means: the one place the wire vocabulary is spelled out. What may
be done about the ledger error code it maps to is models’ classification::retryability.
Enums§
- Wire
Outcome 🔒 - What one
codesays about the row that carries it. Every view below narrows this.
Constants§
- DUPLICATE_
REQUEST_ 🔒ITEM_ CODE - Suotar’s answer for a later item of a batch that repeats an earlier one; it names the earlier item’s submission.
- PERSON_
NOT_ 🔒FOUND_ CODE - Suotar’s answer for a student number that names nobody.
Functions§
- is_
all_ 🔒unavailable - Whether every item of an answer says the registry could not be reached. One good item makes it a plain answer, because something moved.
- is_
only_ 🔒sisu_ timeouts - Whether every item code of an answer says Sisu timed out: Suotar itself answered.
- is_
service_ 🔒unavailable_ code - Whether an item says the registry could not be reached right now. Suotar sends
serviceTemporarilyUnavailableonly for a whole request, so an item carrying it means its API changed, and is still worth backing off from. On import,sisuTimeoutis what every item answers while Sisu is down. - is_
sisu_ 🔒timeout_ code - Whether an import item says Sisu timed out: an answer from Suotar, not a failure of it.
- is_
waiting_ item - Whether an error item’s
codeonly says “not yet, check again later”, so the call log counts it as pending rather than as an error:submissionPending, verify’snotRegistered, and resolve’senrolmentNotFoundandenrolmentNotAccepted. - map_
code 🔒 - Suotar’s per-item
codeas a ledger error code, hardened for the endpoint it arrived on.Nonewhere the code names no failure to record. - outcome_
of 🔒 wire_outcomehardened for the endpoint the code arrived on. Every caller that has an endpoint to name goes through here.- settled_
state 🔒 - The state a
codesettles a row in, orNonewhere it settles nothing. On import,sentmeans Sisu has not answered yet. - wire_
outcome 🔒 - The contract’s own reading of a
code, before any hardening of ours.