QEverCloud
Unofficial Evernote Cloud API for Qt
Public Member Functions | Public Attributes | List of all members
qevercloud::EDAMUserException Class Reference

This exception is thrown by EDAM procedures when a call fails as a result of a problem that a caller may be able to resolve. More...

Inherits qevercloud::EvernoteException.

Public Member Functions

virtual QSharedPointer
< EverCloudExceptionData
exceptionData () const Q_DECL_OVERRIDE
 
const char * what () const Q_DECL_OVERRIDE throw ()
 
- Public Member Functions inherited from qevercloud::EvernoteException
 EvernoteException (QString err)
 
 EvernoteException (const std::string &err)
 
 EvernoteException (const char *err)
 
- Public Member Functions inherited from qevercloud::EverCloudException
 EverCloudException (QString err)
 
 EverCloudException (const std::string &err)
 
 EverCloudException (const char *err)
 
const char * what () const Q_DECL_OVERRIDE throw ()
 

Public Attributes

EDAMErrorCode::type errorCode
 
Optional< QString > parameter
 

Additional Inherited Members

- Protected Attributes inherited from qevercloud::EverCloudException
QByteArray err_
 

Detailed Description

This exception is thrown by EDAM procedures when a call fails as a result of a problem that a caller may be able to resolve.

For example, if the user attempts to add a note to their account which would exceed their storage quota, this type of exception may be thrown to indicate the source of the error so that they can choose an alternate action.

This exception would not be used for internal system errors that do not reflect user actions, but rather reflect a problem within the service that the user cannot resolve.

errorCode: The numeric code indicating the type of error that occurred. must be one of the values of EDAMErrorCode.

parameter: If the error applied to a particular input parameter, this will indicate which parameter.