class documentation

class FailedWrite(_SubmittedEntity):

View In Hierarchy

An entity the API did not accept.

Instance Variable entity_id The entity's id, or None if it has none.
Instance Variable errors The error details for the failure.
Instance Variable index The entity's position in the data passed to Client.put.
Instance Variable rejected True when the API refused the request's payload (a 4xx validation error) or it could not be serialised, so the entity must be corrected before it can be written. False when the request failed for another reason, such as a server or connection error, so the entity may be written by resubmitting it unchanged.
Instance Variable status_code The HTTP status of the failed request, or None when no response was received (e.g. a connection error or an unserialisable payload).

Inherited from _SubmittedEntity:

Method describe A short label for logs, e.g. #17 urn:proj:Agent:a1 or #17 (no id).
entity_id =

The entity's id, or None if it has none.

errors: list[Any] =

The error details for the failure.

index =

The entity's position in the data passed to Client.put.

rejected: bool =

True when the API refused the request's payload (a 4xx validation error) or it could not be serialised, so the entity must be corrected before it can be written. False when the request failed for another reason, such as a server or connection error, so the entity may be written by resubmitting it unchanged.

status_code: int | None =

The HTTP status of the failed request, or None when no response was received (e.g. a connection error or an unserialisable payload).