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

An exception raised when a mismatched delimiter is found when parsing code.

For example:

    iex> Code.eval_string("[1, 2, 3}")
    ** (MismatchedDelimiterError) mismatched delimiter found 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 mismatched closing delimiter
  * `:end_column` - the column for the mismatched closing delimiter
  * `:opening_delimiter` - an atom representing the opening delimiter
  * `:closing_delimiter` - an atom representing the mismatched closing delimiter
  * `:expected_delimiter` - an atom representing the closing delimiter
  * `:description` - a description of the mismatched delimiter error

---

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