About this template
File location: |
|
Used in: | |
Repo link: | |
Instructions: |
This template is used to add documentation for various error types. This template is used to add documentation for various error types:
- Integration or destination connection errors (example)
- Integration extraction errors (example)
- Destination loading errors (example)
Template sections
Each template is grouped into sections to make parameters easier to find. These sections and the parameters they contain are described below.
Raw errors
A mapping of unique keys and raw error messages. This section is optional, but can be useful if you want to be able to directly reference an error message outside of the error reference it’s going to be used in.
For example:
## _data/errors/extraction/databases/mongodb.yml
raw-error:
replication-key-type: "[DATA_TYPE] is not a supported replication key type"
This could then be referenced using:
{{ site.data.errors.extraction.databses.mongodb.raw-error.replication-key-type }}
Instead of something like:
{% assign rep-key-error = site.data.errors.extraction.databses.mongodb.all | find:"id","replication-key-type" %}
{{ rep-key-error.message }}
Parameter | Description |
[ERROR-KEY] STRING |
A key-value pair, where the key is the unique ID for the error and the value is the raw error message itself:
Note: The raw error message should be generic. Replace anything specific like table or column names with placeholders enclosed in brackets. For example: |
All error messages
A list of errors. Errors are items in a list named all
:
all:
- message: ""
id: ""
applicable-to: ""
level: ""
category: ""
category-doc: ""
version: ""
summary: ""
cause: ""
fix-it: ""
Parameter | Description |
message STRING |
The raw error message. Example values:
|
id STRING |
A unique ID for the error message. This is used to generate an anchor, which creates a direct link to the documentation for the error. This should be short and descriptive; hyphens should take the place of spaces. Example values:
|
applicable-to STRING |
The integration(s) or destination(s) the error pertains to. Example values:
|
level STRING |
The urgency level of the error. The level of an error determines how Stitch behaves when the error is encountered:
Must be one of the following:
|
category STRING |
A short description of the broad category the error falls into. For example: An error describing insufficient permissions for a database might have a category of Example values:
|
category-doc STRING |
A link to documentation about the error
If provided, this value and the |
version STRING |
Applicable to integrations only. The version(s) of the integration the error is applicable to. This value should be an integer. Example values:
|
summary STRING |
A summary of the error. This is used by the page’s layout to generate a section heading for the error. Example values:
|
cause STRING |
A description of what caused the error. This can be written using Markdown or HTML. For example:
|
fix-it STRING |
Instructions for how to resolve or work around the error. This can be written in Markdown or HTML and should include links to relevant documentation, if any exists. For example:
|
Back to top
Last updated: 28 July 2021