44 explicit BadRequest(
unsigned char errocode = ErrorCodes::InvalidRequest,
const QString & err =
"");
63 void setErr(
const QString &err);
66 QDataStream &fromStream(QDataStream &stream)
override;
67 QDataStream &toStream(QDataStream &stream)
const override;
73 unsigned char errCode()
const;
79 void setErrCode(
unsigned char code);
83 unsigned char _errCode;
#define QH_PACKAGE(S)
QH_PACKAGE This macross prepare data to send and create a global id for package. For get global id us...
The AbstractData class is provide base functions for transport data by network For create you own pac...
The BadRequest class send response about error to client.
The Package struct. This is base structure for transporting data by network between QH nodes....
#define HEARTSHARED_EXPORT
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
The ErrorData struct is simple structure for contains data of the error.
unsigned char code
code This is code of error. By Default this member equals EccorCodes::UnknownError.
QString msg
msg This is message of error.