PyDocs

Nav

File Formats

TOMLDecodeError

tomllib

exceptionDeprecated 3.14
  • TOMLDecodeError(msg, doc, pos)
Deprecated since 3.14. Passing free-form positional arguments is deprecated.
An error raised if a document is not valid TOML.

Adds the following attributes to ValueError:
msg: The unformatted error message
doc: The TOML document being parsed
pos: The index of doc where parsing failed
lineno: The line corresponding to pos
colno: The column corresponding to pos
Changed in 3.14
  • 3.14: Added the msg, doc and pos parameters. Added the msg, doc, pos, lineno and colno attributes.
Members of TOMLDecodeError

c

colno
The column corresponding to pos.

d

doc
The TOML document being parsed.

l

lineno
The line corresponding to pos.

m

msg
The unformatted error message.

p

pos
The index of doc where parsing failed.
0 Examples
No examples for tomllib/TOMLDecodeError.
See Also
No see-alsos for tomllib/TOMLDecodeError
0 Notes
No notes for TOMLDecodeError