Error codes reported by parsing, writing, and treebank mutation operations.
| Enumerator |
|---|
| Success | No error.
|
| StreamError | Reading from or writing to the underlying stream failed (e.g. an exception was thrown while buffering input).
|
| InsufficientMemory | An allocation failed (e.g. while growing a container or copying a string).
|
| PositionOutOfRange | A supplied index or position was out of range for the target container.
|
| InvalidPointer | A required pointer argument was null, or did not belong to the expected owner.
|
| InvalidColumnsLine | Reserved for a malformed column declaration line.
|
| InvalidColumnName | A column name failed validation (e.g. empty or containing disallowed characters).
|
| DuplicateColumnName | A column with the given name already exists in the treebank.
|
| ColumnNotFound | No column with the given name or position exists.
|
| SentenceMustStartWithMetaLine | The first line of a sentence block was not a #-prefixed meta line.
|
| InvalidSentenceMetaLine | A #-prefixed meta line is not a comment line (does not start with #).
|
| InvalidSentenceMetaKey | An empty metadata key was supplied.
|
| DuplicateSentenceMetaEntry | The same metadata key was set more than once for a sentence.
|
| MissingSentenceId | A sentence block had no sent_id meta line.
|
| InvalidSentenceId | A sentence identifier failed validation.
|
| DuplicateSentenceId | A sentence with the given identifier already exists in the treebank.
|
| SentenceIdCannotBeRemoved | An attempt was made to remove the reserved sent_id metadata entry.
|
| SentenceNotFoundInTreebank | No sentence with the given identifier or pointer exists in the treebank.
|
| InvalidTokenId | A token identifier (ID field) failed validation.
|
| TokenFieldCountMismatch | A token line's number of fields does not match the treebank's column count.
|
| ImmutableTokenField | An attempt was made to modify a field that cannot be set directly (e.g. ID).
|
| TokenEmptyNodeMismatch | An empty node's identifier is inconsistent with its parent token.
|
| NodeNotFoundInToken | No empty node with the given identifier or pointer exists on the token.
|
| InvalidTokenHead | A HEAD value failed validation (e.g. self-reference or no matching token).
|
| TokenNotFoundInSentence | No token with the given identifier or pointer exists in the sentence.
|
| InvalidNumberOfFields | A token's number of fields does not match what the treebank expects.
|
| InvalidWordRange | A word's token range is malformed or out of bounds for its sentence.
|
| OverlappingWordRange | A word's token range overlaps another word's range in the same sentence.
|
| WordNotFoundInSentence | No word with the given pointer exists in the sentence.
|
| WordMustAppearBeforeToken | A word line appeared after one of the individual token lines it should span; word lines must precede their constituent tokens.
|
| InvalidWordFieldValue | A word line set a field it is not permitted to carry (only ID, FORM, MISC, and a Typo=Yes FEATS flag are allowed on a word line).
|