# invalid · FT4 Rell API · Chromia Docs (concept)

> function invalid(error: text): validation_result A validation_result to be returned when an error should be thrown Parameters error — the error message

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.utils/invalid/

FUNCTION

# invalid

```signature
function invalid(error: text): validation_result
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/utils/utils.rell#lines-25)

A `validation_result` to be returned when an error should be thrown

**Parameters**

* **error** — the error message

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.utils/invalid.html)Generated API reference, mirrored from the live docs
