elixir · elixir/SyntaxError
SyntaxError
SyntaxError
Raised by the compiler when source code contains invalid Elixir syntax, such as a malformed expression or a missing operator.
Also defined in
- javascript SyntaxError Thrown when code being parsed does not conform to JavaScript's grammar, such as a mismatched bracket, invalid JSON passed to JSON.parse(), or an unexpected token. Unlike other native errors, a SyntaxError from a top-level script or module is raised at parse time, before any code runs.
- python SyntaxError Raised by the parser or compiler when it encounters a syntax error. Attributes: filename, lineno, offset, text identify the location.
- ruby SyntaxError Raised by eval, require, or load when Ruby encounters invalid syntax in a script. The message includes the filename and line number.