DataAccessError

Since: BlackBerry 10.0.0

#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.


Overview

Public Functions Index

DataAccessError ()
DataAccessError (const DataAccessError &other)
~DataAccessError ()
QStringerrorMessage () const
DataAccessErrorType::TypeerrorType () const
DataAccessError &operator= (const DataAccessError &other)
voidsetError (DataAccessErrorType::Type errorType, const QString &errorMessage)

Public Functions

DataAccessError ()

Constructs an empty @ c DataAccessError.

Since:

BlackBerry 10.0.0

DataAccessError (

Copy constructor.

Parameters
other

The DataAccessError to copy.

Since:

BlackBerry 10.0.0

~DataAccessError ()

Destructor.

Since:

BlackBerry 10.0.0

QString errorMessage ()

Returns the detailed error message for this error.

Return:

The detailed error message.

Since:

BlackBerry 10.0.0

DataAccessErrorType::Type errorType ()

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.

Return:

The error type.

Since:

BlackBerry 10.0.0

DataAccessError & operator= (

Assignment constructor.

Parameters
other

The DataAccessError to assign from.

Return:

The constructed DataAccessError instance.

Since:

BlackBerry 10.0.0

void setError (

Sets the error type and detailed error message for this error.

Parameters
errorType

The new error type.

errorMessage

The new detailed error message.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus