exceptions package¶
Submodules¶
exceptions.docx_exceptions module¶
- exception exceptions.docx_exceptions.FileDoesNotContainXMLFile(path: str, file: str)[source]¶
Bases:
Exception
The error called when you try to edit any files in DOCX-file, that doesn’t exist in DOCX-archive Example: you try edit any comment, but DOCX-archive doesn’t contain comments.xml
- exception exceptions.docx_exceptions.ILvlDoesNotExist(num: int)[source]¶
Bases:
Exception
The error called when you try created ilvl with number not from range [0; 8]
- exception exceptions.docx_exceptions.ImpossibleColor(rgb: tuple)[source]¶
Bases:
Exception
The error called when you try to input rgb-color with values not in range (0, 255)
- exception exceptions.docx_exceptions.IncorrectILvlMarkingDict(ind: int)[source]¶
Bases:
Exception
The error called when program try to get indentations from custom ilvl_marking-dict by Non-existent level Example: you specified 8 levels in abstractNum, but ilvl_marking-dict contains only 7 values
- exception exceptions.docx_exceptions.InvalidAttributeKey(tag: str, key: str)[source]¶
Bases:
Exception
The error called when you try to get value of attribute, that doesn’t exist
- exception exceptions.docx_exceptions.NotSupportedFormat(filename: str = 'file you open')[source]¶
Bases:
Exception
The error called when you input a file name of non-docx format.