mrdocs::HandlebarsError

An error thrown or returned by Handlebars

Synopsis

Declared in <mrdocs/Support/Handlebars.hpp>

struct HandlebarsError
    : std::runtime_error

Description

An error returned or thrown by Handlebars environment when an error occurs during template rendering.

The error message will be the same as the error message returned by Handlebars.js.

The object will also contain the line, column and position of the error in the template. These can be used to by the caller to provide more detailed error messages.

Base Classes

Name Description

std::runtime_error

One of two subclasses of exception.

Member Functions

Name

Description

HandlebarsError [constructor]

Constructors

operator=

Assignment operators

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

column

line

pos

Created with MrDocs