#include <Pt/Db/DbError.h>
Thrown when a database constraint is violated.
Inherits QueryFailed.
|
|
| ConstraintMismatch (const std::string &what, const std::string &statement) |
| | Constructs the error with what and the failing statement.
|
|
| ~ConstraintMismatch () throw () |
| | Destructor.
|
|
const std::string & | statement () const |
| | Returns the SQL statement that caused the error.
|