Skip to main content

Module error

Module error 

Source
Expand description

Error types for the nginx configuration parser.

Errors are split into two stages:

  • LexerError — failures during tokenization (unterminated strings, unexpected characters).
  • ParseError — failures during parsing (unexpected tokens, unclosed blocks, missing semicolons).

Both carry a Position so that error messages can point to the exact line and column in the source.

Enums§

LexerError
An error that occurs during tokenization (lexing).
ParseError
An error that occurs during parsing.

Type Aliases§

ParseResult
Result type alias for parser operations