Class SyntaxError

Synopsis

#include <orm_lib/inc/drogon/orm/Exception.h>

class SyntaxError : public SqlError

Description

No description yet.

Inheritance

Ancestors: SqlError

Decsendents: UndefinedColumn, UndefinedFunction, UndefinedTable

Methods

SyntaxError

Source

Lines 394-407 in orm_lib/inc/drogon/orm/Exception.h. Line 395 in orm_lib/inc/drogon/orm/Exception.h.

class SyntaxError : public SqlError
{
  public:
    /// Approximate position in string where error occurred, or -1 if unknown.
    const int errorPosition_;

    explicit SyntaxError(const std::string &err,
                         const std::string &Q = "",
                         const char sqlstate[] = nullptr,
                         int pos = -1)
        : SqlError(err, Q, sqlstate), errorPosition_(pos)
    {
    }
};





Add Discussion as Guest

Log in to DocsForge