ERROR
Raises an error with the specified message.
Categories: Logic
Syntax
ERROR(message)
Examples
Example 1
Formula
ERROR()
Output
"Error: Explicit error raised"
Example 2
Formula
ERROR('My error message')
Output
"Error: My error message"
Example 3: Useful for validating input values
Input
1
{
2
"action": {
3
"string_value": 0
4
}
5
}
Formula
IF(TYPE(action.string_value) = "String", action.string_value, ERROR("string_value must be a string, got " & TYPE(action.string_value)))
Output
"Error: string_value must be a string, got Integer"