# LibTmux.FormatValueError

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/formats.jl#L38
- **Bases:** [`LibTmux.LibTmuxError`](/en/julia/latest/reference/libtmux-libtmuxerror/)
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-formatvalueerror/

```
(var"#ctor-self#"::Type{LibTmux.FormatValueError{R}} where R)(
    field,
    expected,
    raw,
    result
)

LibTmux.FormatValueError(
    field::String,
    expected::DataType,
    raw::String,
    result::R
) where R
```

A nonempty format value failed its requested decoder; command bytes remain in `result`.

## Methods

### `FormatValueError` (overload 1)

```julia
(var"#ctor-self#"::Type{LibTmux.FormatValueError{R}} where R)(
    field,
    expected,
    raw,
    result
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/formats.jl#L40).

### `FormatValueError` (overload 2)

```julia
LibTmux.FormatValueError(
    field::String,
    expected::DataType,
    raw::String,
    result::R
) where R
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/formats.jl#L40).

## Parameters

- `field` (`Any`) (for `FormatValueError(field, expected, raw, result) [overload 1]`)
- `expected` (`Any`) (for `FormatValueError(field, expected, raw, result) [overload 1]`)
- `raw` (`Any`) (for `FormatValueError(field, expected, raw, result) [overload 1]`)
- `result` (`Any`) (for `FormatValueError(field, expected, raw, result) [overload 1]`)
- `field` (`String`) (for `FormatValueError(field, expected, raw, result) [overload 2]`)
- `expected` (`DataType`) (for `FormatValueError(field, expected, raw, result) [overload 2]`)
- `raw` (`String`) (for `FormatValueError(field, expected, raw, result) [overload 2]`)
- `result` (`R`) (for `FormatValueError(field, expected, raw, result) [overload 2]`)

## Members

### Other members

- `expected` (property)
- `field` (property)
- `raw` (property)
- `result` (property)
