MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

SignOn::Error Class Reference

definition for Signon error handling. More...

List of all members.

Public Types

enum   ErrorType {
  Unknown = 1, InternalServer = 2, InternalCommunication = 3, PermissionDenied = 4,
  EncryptionFailure, AuthServiceErr = 100, MethodNotKnown, ServiceNotAvailable,
  InvalidQuery, IdentityErr = 200, MethodNotAvailable, IdentityNotFound,
  StoreFailed, RemoveFailed, SignOutFailed, IdentityOperationCanceled,
  CredentialsNotAvailable, ReferenceNotFound, AuthSessionErr = 300, MechanismNotAvailable,
  MissingData, InvalidCredentials, NotAuthorized, WrongState,
  OperationNotSupported, NoConnection, Network, Ssl,
  Runtime, SessionCanceled, TimedOut, UserInteraction,
  OperationFailed, EncryptionFailed, TOSNotAccepted, ForgotPassword,
  MethodOrMechanismNotAllowed, IncorrectDate, SessionClosed, UserErr = 400
}
 

Error codes for all the Signon by default supported errors.

More...

Public Member Functions

  Error ()
  Constructor.
  Error (const Error &src)
  Copy constructor.
  Error (int type, const QString &message=QString())
  For convenience constructor.
Error operator= (const Error &src)
  Assignment operator.
virtual  ~Error ()
  Destructor.
void  setType (int type)
  Sets the type of the error.
void  setMessage (const QString &message)
  Sets the error message.
int  type () const
QString  message () const

Detailed Description

definition for Signon error handling.

Extend this class' error range in order to provide custom error handling.

Attention:
All this class' definitions must be inline.

Member Enumeration Documentation

Error codes for all the Signon by default supported errors.

Plugin developers should use the predefined error types in the AuthSessionErr and UserErr interval, and in the case of extended error handling values greater than UserErr.

Attention:
Error types lesser than Error::UserErr are reserved.
Enumerator:
Unknown 

Catch-all for errors not distinguished by another code.

InternalServer 

Signon Daemon internal error.

InternalCommunication 

Communication with Signon Daemon error.

PermissionDenied 

The operation cannot be performed due to insufficient client permissions.

EncryptionFailure 

Failure during data encryption/decryption.

MethodNotKnown 

The method with this name is not found.

ServiceNotAvailable 

The service is temporarily unavailable.

InvalidQuery 

Parameters for the query are invalid.

MethodNotAvailable 

The requested method is not available.

IdentityNotFound 

The identity matching this Identity object was not found on the service.

StoreFailed 

Storing credentials failed.

RemoveFailed 

Removing credentials failed.

SignOutFailed 

SignOut failed.

IdentityOperationCanceled 

Identity operation was canceled by user.

CredentialsNotAvailable 

Query failed.

ReferenceNotFound 

Trying to remove nonexistent reference.

MechanismNotAvailable 

The requested mechanism is not available.

MissingData 

The SessionData object does not contain necessary information.

InvalidCredentials 

The supplied credentials are invalid for the mechanism implementation.

NotAuthorized 

Authorization failed.

WrongState 

An operation method has been called in a wrong state.

OperationNotSupported 

The operation is not supported by the mechanism implementation.

NoConnection 

No Network connetion.

Network 

Network connetion failed.

Ssl 

Ssl connection failed.

Runtime 

Casting SessionData into subclass failed

SessionCanceled 

Challenge was cancelled.

TimedOut 

Challenge was timed out.

UserInteraction 

User interaction dialog failed

OperationFailed 

Temporary failure in authentication.

EncryptionFailed 
Deprecated:
Failure during data encryption/decryption.
TOSNotAccepted 

User declined Terms of Service.

ForgotPassword 

User requested reset password sequence.

MethodOrMechanismNotAllowed 

Method or mechanism not allowed for this identity.

IncorrectDate 

Date time incorrect on device.

SessionClosed 

User closed the session before completing session related operations - e.g. browser authentication.


Constructor & Destructor Documentation

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

Copy constructor.

Parameters:
src  Error object to be copied
SignOn::Error::Error ( int  type,
const QString message = QString()  
) [inline]

For convenience constructor.

Parameters:
type  Type of the error
message  Error message

Member Function Documentation

QString SignOn::Error::message (  )  const [inline]
Returns:
Error message
Error& SignOn::Error::operator= ( const Error src  )  [inline]

Assignment operator.

Parameters:
src  Error object to be assigned to this instance
void SignOn::Error::setMessage ( const QString message  )  [inline]

Sets the error message.

Parameters:
message  The message to be set
void SignOn::Error::setType ( int  type  )  [inline]

Sets the type of the error.

The 'type' parameter is an integer and values beyond Error::ErrorType can be used for customized error reporting.

See also:
Error::ErrorType.
Parameters:
type  The type to be set
int SignOn::Error::type (  )  const [inline]
Returns:
Type of the error

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