Wt  3.7.1
Public Member Functions | List of all members
Wt::Dbo::Exception Class Reference

Exception base class for Wt::Dbo. More...

#include <Wt/Dbo/Exception>

Inheritance diagram for Wt::Dbo::Exception:
Inheritance graph

Public Member Functions

 Exception (const std::string &error, const std::string &code=std::string())
std::string code () const
 A (backend-specific) error code. More...

Detailed Description

Exception base class for Wt::Dbo.

Member Function Documentation

◆ code()

std::string Wt::Dbo::Exception::code ( ) const

A (backend-specific) error code.

For native SQL errors, a native backend code may be available (see the backend documentation for details). This is typically the (semi-standardized) SQLSTATE code value.

When not available, an empty string is returned.

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13