QEverCloud  6.1.0
Unofficial Evernote Cloud API for Qt
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
qevercloud::ThriftException Class Reference

#include <Exceptions.h>

Inheritance diagram for qevercloud::ThriftException:
qevercloud::EverCloudException

Public Types

enum  Type {
  Type::UNKNOWN = 0, Type::UNKNOWN_METHOD = 1, Type::INVALID_MESSAGE_TYPE = 2, Type::WRONG_METHOD_NAME = 3,
  Type::BAD_SEQUENCE_ID = 4, Type::MISSING_RESULT = 5, Type::INTERNAL_ERROR = 6, Type::PROTOCOL_ERROR = 7,
  Type::INVALID_DATA = 8
}
 

Public Member Functions

 ThriftException ()
 
 ThriftException (Type type)
 
 ThriftException (Type type, QString message)
 
virtual ~ThriftException () noexcept override
 
bool operator== (const ThriftException &other) const
 
bool operator!= (const ThriftException &other) const
 
Type type () const
 
const char * what () const noexcept override
 
virtual EverCloudExceptionDataPtr exceptionData () const override
 
- Public Member Functions inherited from qevercloud::EverCloudException
 EverCloudException ()
 
 EverCloudException (QString error)
 
 EverCloudException (const std::string &error)
 
 EverCloudException (const char *error)
 
virtual ~EverCloudException () noexcept override
 

Protected Attributes

Type m_type
 
- Protected Attributes inherited from qevercloud::EverCloudException
QByteArray m_error
 

Friends

QEVERCLOUD_EXPORT QTextStream & operator<< (QTextStream &strm, const Type type)
 

Detailed Description

Errors of the Thrift protocol level. It could be wrongly formatted parameters or return values for example.

Member Enumeration Documentation

◆ Type

Enumerator
UNKNOWN 
UNKNOWN_METHOD 
INVALID_MESSAGE_TYPE 
WRONG_METHOD_NAME 
BAD_SEQUENCE_ID 
MISSING_RESULT 
INTERNAL_ERROR 
PROTOCOL_ERROR 
INVALID_DATA 

Constructor & Destructor Documentation

◆ ThriftException() [1/3]

qevercloud::ThriftException::ThriftException ( )

◆ ThriftException() [2/3]

qevercloud::ThriftException::ThriftException ( Type  type)

◆ ThriftException() [3/3]

qevercloud::ThriftException::ThriftException ( Type  type,
QString  message 
)

◆ ~ThriftException()

virtual qevercloud::ThriftException::~ThriftException ( )
overridevirtualnoexcept

Member Function Documentation

◆ exceptionData()

virtual EverCloudExceptionDataPtr qevercloud::ThriftException::exceptionData ( ) const
overridevirtual

Reimplemented from qevercloud::EverCloudException.

◆ operator!=()

bool qevercloud::ThriftException::operator!= ( const ThriftException other) const

◆ operator==()

bool qevercloud::ThriftException::operator== ( const ThriftException other) const

◆ type()

Type qevercloud::ThriftException::type ( ) const

◆ what()

const char* qevercloud::ThriftException::what ( ) const
overridevirtualnoexcept

Reimplemented from qevercloud::EverCloudException.

Friends And Related Function Documentation

◆ operator<<

QEVERCLOUD_EXPORT QTextStream& operator<< ( QTextStream &  strm,
const Type  type 
)
friend

Member Data Documentation

◆ m_type

Type qevercloud::ThriftException::m_type
protected