---
title: ERROR
url: https://www.tines.com/docs/formulas/functions/error/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# ERROR

*[View on tines.com](https://www.tines.com/docs/formulas/functions/error/)*

Raises an error with the specified message.

**Categories:** Logic

## Syntax

```
ERROR(message)
```

## Examples

### Example 1

Formula:

```
ERROR()
```

Output:

```json
"Error: Explicit error raised"
```

### Example 2

Formula:

```
ERROR('My error message')
```

Output:

```json
"Error: My error message"
```

### Example 3: Useful for validating input values

Input:

```json
{
  "action": {
    "string_value": 0
  }
}
```

Formula:

```
IF(TYPE(action.string_value) = "String", action.string_value, ERROR("string_value must be a string, got " & TYPE(action.string_value)))
```

Output:

```json
"Error: string_value must be a string, got Integer"
```
