Wt: Wt::Dbo::Exception Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::Dbo::Exception Class Reference
Database Objects (Wt::Dbo)

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

`#include <Wt/Dbo/Exception>`

Inheritance diagram for Wt::Dbo::Exception:
[legend]

List of all members.

## Public Member Functions
| Exception (const std::string &error, const std::string &code=std::string())
| Constructor.
std::string | code () const
| A (backend-specific) error code.

## Detailed Description

Exception base class for Wt::Dbo.

## Member Function Documentation

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.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator