# `TokenMissingError`
[🔗](https://github.com/elixir-lang/elixir/blob/v1.20.0-rc.3/lib/elixir/lib/exception.ex#L1279)

An exception raised when a token is missing when parsing code.

For example:

    iex> Code.eval_string("[1, 2, 3")
    ** (TokenMissingError) token missing on nofile:1:9:
    ...

The following fields of this exceptions are public and can be accessed freely:

  * `:file` (`t:Path.t/0` or `nil`) - the file where the error occurred, or `nil` if
    the error occurred in code that did not come from a file
  * `:line` - the line for the opening delimiter
  * `:column` - the column for the opening delimiter
  * `:end_line` - the line for the end of the string
  * `:end_column` - the column for the end of the string
  * `:opening_delimiter` - an atom representing the opening delimiter
  * `:expected_delimiter` - an atom representing the expected delimiter
  * `:description` - a description of the missing token error

This is mostly raised by Elixir tooling when compiling and evaluating code.

---

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