# `Beancount.Parser.Error`
[🔗](https://github.com/thanos/beancount_ex/blob/v0.6.0/lib/beancount/parser/error.ex#L1)

Structured parse error for Beancount input.

Every parse failure returns `%Beancount.Parser.Error{}` rather than raising
a bare `FunctionClauseError`.

# `t`

```elixir
@type t() :: %Beancount.Parser.Error{
  __exception__: term(),
  column: pos_integer() | nil,
  line: pos_integer() | nil,
  message: String.t(),
  token: term() | nil
}
```

# `exception`

Build a parse error exception from keyword options.

## Examples

    error = Beancount.Parser.Error.exception(message: "syntax error", line: 3, column: 5)
    error.message
    # => "syntax error at line 3, column 5"

---

*Consult [api-reference.md](api-reference.md) for complete listing*
