DataAccessError
#include <bb/data/DataAccessError>
To link against this class, add the following line to your .pro file: LIBS += -lbbdata
Represents an error from a DataAccess load or save operation.
The DataAccessError class includes a detailed error message and error type that results from a DataAccess load or save operation.
This is a Qt value object that supports implicit data sharing.
BlackBerry 10.0.0
Public Functions Index
| DataAccessError () | |
| DataAccessError (const DataAccessError &other) | |
| DataAccessError & | operator= (const DataAccessError &other) |
| ~DataAccessError () | |
| DataAccessErrorType::Type | errorType () const |
| QString | errorMessage () const |
| void | setError (DataAccessErrorType::Type errorType, const QString &errorMessage) |
Public Functions
DataAccessError &
Assignment constructor.
| Parameters | |
|---|---|
| other |
The DataAccessError to assign from. |
The constructed DataAccessError instance.
BlackBerry 10.0.0
Destructor.
BlackBerry 10.0.0
DataAccessErrorType::Type
Returns the error type for this error.
The error type indicates what kind of error occurred. An example of an error type is DataAccessErrorType::SourceNotFound, which indicates that the source database, URL, or file was not found.
The error type.
BlackBerry 10.0.0
QString
Returns the detailed error message for this error.
The detailed error message.
BlackBerry 10.0.0
void
Sets the error type and detailed error message for this error.
| Parameters | |
|---|---|
| errorType |
The new error type. |
| errorMessage |
The new detailed error message. |
BlackBerry 10.0.0