Qx v0.5.8
Qt Extensions Library
|
The qx-error.h header file provides access to the Error interface. More...
#include "qx/core/qx_core_export.h"
#include <QHash>
#include <QMetaType>
#include <QTextStream>
#include "qx/core/qx-abstracterror.h"
Go to the source code of this file.
Classes | |
class | Qx::Error |
The Error class acts as an interface for an extensible variety of error objects. More... | |
Namespaces | |
namespace | Qx |
The Qx namespace is the main namespace through which all non-global functionality of the Qx library is accessed. | |
Macros | |
#define | QX_DECLARE_ERROR_ADAPTATION(Adaptable, Adapter) |
Functions | |
QX_CORE_EXPORT QTextStream & | operator<< (QTextStream &ts, const Qx::Error &e) |
#define QX_DECLARE_ERROR_ADAPTATION | ( | Adaptable, | |
Adapter ) |
This macro registers Adapter as an Error Adapter for the type Adaptable. Adaptable and Adapter together must satisfy the error_adaptation constraint.
QX_CORE_EXPORT QTextStream & operator<< | ( | QTextStream & | ts, |
const Qx::Error & | e ) |
Writes the error e to the stream ts.
The error is written in a human-readable format, structured by its properties. A new line is always started after the error is written.