DSMParseError¶
- class dsviper.DSMParseError¶
Bases:
objectOne parse failure.
The source it came from, the line and position, and the message.
Note: Not directly instantiable.
- line() int¶
Return the 1-based line number within the part source() names.
- message() str¶
Return what the parser could not accept, in one sentence.
- pos() int¶
Return the 1-based character position in the line.
It counts characters, not bytes, as a DSMSourceSpan offset does - but a span counts from 0 over the whole assembled content, so the two do not compare directly.
- source() str¶
Return the name of the part the error was found in, as appended to the builder.