|
QEloquent 1.1.0
Qt most flexible ORM.
|
Represents an error in a database operation. More...
Public Member Functions | |
| Error () | |
| Constructs a NoError object. | |
| Error (ErrorType error, const QString &text=QString(), const QSqlError &sqlError=QSqlError()) | |
| Constructs an error with a type and message. | |
| Error (const Error &) | |
| Copy constructor. | |
| Error (Error &&) | |
| Move constructor. | |
| Error & | operator= (const Error &) |
| Copy assignment operator. | |
| Error & | operator= (Error &&) |
| Move assignment operator. | |
| ~Error () | |
| Destructor. | |
| QString | text () const |
| Returns a human-readable error message. | |
| QSqlError | sqlError () const |
| Returns the underlying QSqlError. | |
| ErrorType | type () const |
| Returns the error type. | |
Static Public Member Functions | |
| static Error | fromSqlQuery (const QSqlQuery &query) |
| Creates an Error object from a QSqlQuery results. | |
| static Error | fromSqlError (const QSqlError &error) |
| Creates an Error object from a QSqlError. | |
Represents an error in a database operation.