The BadRequest class send response about error to client.
void setErrCode(unsigned char code)
setErrCode This method set error code.
QString err() const
err This method return a text of error message.
unsigned char errCode() const
errCode This method return code of error.
void setErr(const QString &err)
setErr - Set a error message.
QDataStream & fromStream(QDataStream &stream) override
fromStream This method should be read all bytes from the stream object and full the current object.
QDataStream & toStream(QDataStream &stream) const override
fromStream This method should be write all members of the current object to the stream object.
BadRequest(unsigned char errocode=ErrorCodes::InvalidRequest, const QString &err="")
BadRequest.
The Package struct. This is base structure for transporting data by network between QH nodes....
QByteArray data
data This is source data of package.
bool fromBytes(const QByteArray &data)
fromBytes This method provide initialization of object from byte array.
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.