MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

Accounts::Error Class Reference

Base object definition for accounts error handling. More...

List of all members.

Public Types

enum   ErrorType {
  NoError = 0, Unknown, Database, Deleted,
  DatabaseLocked, AccountNotFound
}
 

Error codes for all the accounts errors.

More...

Public Member Functions

  Error ()
  Basic constructor.
  Error (const Error &src)
  Copy constructor.
  Error (ErrorType type, const QString &message=QString())
  Constructor.
Error operator= (const Error &src)
  Assignment operator.
virtual  ~Error ()
  Destructor.
ErrorType  type () const
QString  message () const

Detailed Description

Base object definition for accounts error handling.


Member Enumeration Documentation

Error codes for all the accounts errors.

Enumerator:
NoError 
Unknown 
Database 

Generic database error

Deleted 

The account object refers to an account which has been deleted

DatabaseLocked 

The database is locked

AccountNotFound 

The account couldn't be found


Constructor & Destructor Documentation

Accounts::Error::Error (  )  [inline]

Basic constructor.

Accounts::Error::Error ( const Error src  )  [inline]

Copy constructor.

Parameters:
src  Error object to be copied.
Accounts::Error::Error ( ErrorType  type,
const QString message = QString()  
) [inline]

Constructor.

Parameters:
type  The error's type.
message  The error's message.
virtual Accounts::Error::~Error (  )  [inline, virtual]

Destructor.


Member Function Documentation

QString Accounts::Error::message (  )  const [inline]
Returns:
The error's message.
Error& Accounts::Error::operator= ( const Error src  )  [inline]

Assignment operator.

Parameters:
src  The error object to be assigned to this instance.
ErrorType Accounts::Error::type (  )  const [inline]
Returns:
The error's type.

Copyright (C) 2009-2011 Nokia Corporation.
LGPL
MeeGo 1.2 Harmattan API