# Err

```ts
function Err<T>(cause: unknown): Result<T>
```

Construct a failed [Result](https://frontside.com/effection/api/v4-next/Result.md).

### Example

```javascript
import { Err } from 'effection';

let result = Err(new Error("oh no"));
// { ok: false, error: Error("oh no") }
```

### Type Parameters
T


### Parameters


**cause**: unknown
### Return Type


[Result](https://frontside.com/effection/api/v4-next/Result.md)&lt;T&gt;

[View code](https://github.com/thefrontside/effection/tree/effection-v4.2.0/lib/result.ts#L58)
