> For the complete documentation index, see [llms.txt](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling/index/error.md).

# error

### Validation.error

Namespace: `FsToolkit.ErrorHandling`

Lift an `'error` value into an `Validation<'ok, 'error>`

### Function Signature:

```fsharp
'error -> Validation<'ok, 'error>
```

### Examples

#### Example 1

```fsharp
let result : Validation<int, string> =
  Validation.error "Something bad happened"
```
