Skip to content
{% throws %}
AutoXXS (320px)XS (375px)SM (640px)MD (768px)LG (1024px)XL (1280px)XXL (1536px)
SketchMaterialiOSTamagui
DataInjectionKeyPatternsServiceTransactionProcessResearchProductQualityPerformanceSpecDomainFunctionTechnologyArchitectureConfigMiddlewareDataDatabaseDrizzleMigrationModelop-sqliteSchemaSQLState ManagementDraftKeystoneMergePatchPatchesPersistenceReactiveRedoStoreUndoTestingDeviceFactoryIsolationTypeScriptZodTopicsCommunicationBidsNVCDesignDesign ImplicationsEducationPedagogyFoundationsPsychologyAttachmentFloodingRelatingAuthentic RelatingUIEditorReact Native

{% 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
tagthrowsoperationerror throws-tag-reference
{% operation name="get-bookmark" type="read" %}
{% throws ref="bookmark-not-found" /%}
{% /operation %}