QEverCloud  3.0.0
Unofficial Evernote Cloud API for Qt
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
qevercloud::EDAMUserException Class Reference

#include <types.h>

Inheritance diagram for qevercloud::EDAMUserException:
qevercloud::EvernoteException qevercloud::EverCloudException

Public Member Functions

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

Public Attributes

EDAMErrorCode::type errorCode
 
Optional< QString > parameter
 

Additional Inherited Members

- Protected Attributes inherited from qevercloud::EverCloudException
QByteArray m_error
 

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.

Constructor & Destructor Documentation

qevercloud::EDAMUserException::EDAMUserException ( )
inline
qevercloud::EDAMUserException::~EDAMUserException ( )
throw (
)
inline

Member Function Documentation

virtual QSharedPointer<EverCloudExceptionData> qevercloud::EDAMUserException::exceptionData ( ) const
virtual

Reimplemented from qevercloud::EvernoteException.

const char* qevercloud::EDAMUserException::what ( ) const
throw (
)

Member Data Documentation

EDAMErrorCode::type qevercloud::EDAMUserException::errorCode
Optional< QString > qevercloud::EDAMUserException::parameter