Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.19 KB

errors.rst

File metadata and controls

41 lines (32 loc) · 1.19 KB

single: Errors

Possible Errors

This section is about the possible errors that Docxtemplater will throw

Schema of the error ------------------

All errors thrown by docxtemplater have the following schema:

Error example

If your content is {user {name}, docxtemplater will throw the following error :

try

doc.render()

catch e

e.name=="TemplateError" e.message=="Unclosed tag" e.properties.explanation=="The tag beginning with '{user ' is unclosed" e.properties.id=="unclosed_tag" e.properties.context=="{user {" e.properties.xtag=="user "