# fpromise::error_result

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/struct/fpromise/error-result#structfpromise_1_1error__result_1a87f44a080afe052c652258e55317fd60(E error)` ||

| ### Public types ||
|---|---|
| `https://fuchsia.dev/reference/cpp/struct/fpromise/error-result#structfpromise_1_1error__result_1ab884cdbc9f136c2304f358f8979139f3` | using `E` |

| ### Public attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/struct/fpromise/error-result#structfpromise_1_1error__result_1a1b54bdbf1a246ee57e32aed0f37d43a2` | `E` |

## Public types

### error_type

```c++
E fpromise::error_result::error_type
```

## Public attributes

### error

```c++
E fpromise::error_result::error
```

## Public functions

### error_result

```c++
constexpr fpromise::error_result::error_result(
  E error
)
```