mrdocs::handlebars::Error

An error thrown or returned by Handlebars.

Synopsis

struct Error
    : std::runtime_error

Description

An error returned or thrown by the Handlebars environment when an error occurs during template rendering. The message matches the error message returned by Handlebars.js, and the object also carries the line, column, and position of the error in the template so callers can produce more detailed diagnostics.

Base Classes

Name

Description

std::runtime_error

One of two subclasses of exception.

Member Functions

Name

Description

Error [constructor]

Constructors

operator=

Assignment operators

message

Return the error message.

what [virtual]

Returns a C‐style character string describing the general cause of the current error (the same string passed to the ctor).

Data Members

Name

Description

column

Column of the error in the template.

line

Line number in the template where the error occurred.

pos

Absolute character position of the error.

Created with MrDocs