|
QEverCloud
6.1.0
Unofficial Evernote Cloud API for Qt
|
#include <Exceptions.h>
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) |
Errors of the Thrift protocol level. It could be wrongly formatted parameters or return values for example.
|
strong |
| qevercloud::ThriftException::ThriftException | ( | ) |
| qevercloud::ThriftException::ThriftException | ( | Type | type | ) |
| qevercloud::ThriftException::ThriftException | ( | Type | type, |
| QString | message | ||
| ) |
|
overridevirtualnoexcept |
|
overridevirtual |
Reimplemented from qevercloud::EverCloudException.
| bool qevercloud::ThriftException::operator!= | ( | const ThriftException & | other | ) | const |
| bool qevercloud::ThriftException::operator== | ( | const ThriftException & | other | ) | const |
| Type qevercloud::ThriftException::type | ( | ) | const |
|
overridevirtualnoexcept |
Reimplemented from qevercloud::EverCloudException.
|
friend |
|
protected |