{
  "name": "throw",
  "description": "Aborts execution by throwing an exception with the given message; optionally attach status code and public flag",
  "signature": {
    "input": {
      "kind": "exception-message,text",
      "description": "Exception message to throw",
      "required": false,
      "mode": "ValueOrExpression"
    },
    "children": {
      "public": {
        "type": "bool",
        "description": "Whether the exception message may be returned to clients",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "default": "false",
        "role": "Option",
        "projection": "Value"
      },
      "status": {
        "type": "int",
        "kind": "http-status-code",
        "description": "HTTP status code associated with the exception",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "default": "500",
        "role": "Option",
        "projection": "Value"
      },
      "field": {
        "type": "string",
        "kind": "form-field-id",
        "description": "Optional form field or control ID associated with the exception",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "role": "Option",
        "projection": "Value"
      }
    }
  }
}
