parser::TemplateParseException class

Exception thrown when citation parsing fails.

This exception is thrown when the parser cannot successfully parse the input text for templates, typically due to malformed wikitext or syntax errors in the input.

Constructors, destructors, conversion operators

TemplateParseException(const std::string& message) explicit
Constructs a TemplateParseException with a descriptive message.
TemplateParseException(const char* message) explicit
Constructs a TemplateParseException with a descriptive message.
TemplateParseException(const std::string& message, const std::string& input_text)
Constructs a TemplateParseException with input context.
~TemplateParseException() defaulted override noexcept
Virtual destructor to ensure proper cleanup in inheritance hierarchies.

Function documentation

parser::TemplateParseException::TemplateParseException(const std::string& message) explicit

Constructs a TemplateParseException with a descriptive message.

Parameters
message Description of the parse failure

parser::TemplateParseException::TemplateParseException(const char* message) explicit

Constructs a TemplateParseException with a descriptive message.

Parameters
message Description of the parse failure

parser::TemplateParseException::TemplateParseException(const std::string& message, const std::string& input_text)

Constructs a TemplateParseException with input context.

Parameters
message Description of the parse failure
input_text The text that failed to parse (truncated if too long)