{% throws %}
Attributes
| Parameter | Type | Required | Description |
|---|---|---|---|
ref | string | ✓ | Bare id of an error declared in an api block (e.g., 'bookmark-not-found') |
Valid Parent Contexts
This tag is valid inside: {% operation %}
Self-closing tag. Declares that the parent operation may fail with the named error. The ref must match the id of an error tag defined within an api block.
Operation declaring a throws reference
{% operation name="get-bookmark" type="read" %} {% throws ref="bookmark-not-found" /%}{% /operation %}