QEloquent 1.1.0
Qt most flexible ORM.
Loading...
Searching...
No Matches
QEloquent::Error Class Reference

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.
 
Erroroperator= (const Error &)
 Copy assignment operator.
 
Erroroperator= (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.
 

Detailed Description

Represents an error in a database operation.


The documentation for this class was generated from the following files: