Errors Handling


CT ++ template engine can work in two modes: with the strict control of syntax (by default) and without. In case of the strict control of syntax exception std::logic_error is generated in the following cases:
The diagnostic message is: "Syntax error in <TMPL_operator_name PARAMETER_NAME at line LINE_NUMBER column COLUMN_NUMBER."

Example:
Syntax error in <TMPL_var too_long_dataaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa at line 132 column 116.
Exception std::logic_error generated always irrespective of a mode of check of syntax of a pattern in the following cases:
Names of functions and variables should not contain symbols '>', '(', ')', space and cannot begin with a symbol of underlining . By a call from operator TMPL_var it is possible to specify only one parameter of function.
Copyright © 2003 - 2005 CTPP Dev. Team | http://reki.ru/products/ctpp