8000 Update error_reporting.md · jinja2cpp/jinja2cpp.github.io@3ec0727 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ec0727

Browse files
authored
Update error_reporting.md
1 parent 3a8b949 commit 3ec0727

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/usage/error_reporting.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ parent: Jinja2C++ Usage
55
nav_order: 7
66
---
77

8+
# Error reporting
9+
{: .no_toc }
10+
11+
## Table of contents
12+
{: .no_toc .text-delta }
13+
14+
1. TOC
15+
{:toc}
16+
17+
## Common concepts
18+
19+
TODO:
20+
21+
## Parse-time errors
822
It's difficult to write complex template completely without errors. Missed braces, wrong characters, incorrect names... Everything is possible. So, it's crucial to be able to get informative error report from the template engine. Jinja2Cpp provides such kind of report. ```Template::Load``` method (and TemplateEnv::LoadTemplate respectively) return instance of ```ErrorInfo``` class which contains details about the error. These details include:
923
- Error code
1024
- Error description
@@ -26,3 +40,7 @@ noname.j2tpl:1:11: error: Expected expression, got: ','
2640
---^-------
2741
```
2842
{% endraw %}
43+
44+
## Runtime errors
45+
46+
TODO:

0 commit comments

Comments
 (0)
0