Skip to content

Keyword error

Oliver Atkinson edited this page May 10, 2026 · 1 revision

error

Stops evaluation by throwing an error with a computed message.

Shape

{
  "{returns}": {
    "error": {
      "message": "Missing ruby slippers"
    }
  }
}

Example

{
  "{returns}": {
    "error": {
      "message": {
        "{returns}": {
          "text": {
            "from": {
              "joining": {
                "array": ["Missing field: ", "ruby_slippers"]
              }
            }
          }
        }
      }
    }
  }
}

Use a sibling default when you want to recover from the error.

Clone this wiki locally