The QGrpcStatus class contains information about last gRPC operation. More...
#include <qgrpcstatus.h>
Public Types | |
enum | StatusCode { Ok = 0 , Cancelled = 1 , Unknown = 2 , InvalidArgument = 3 , DeadlineExceeded = 4 , NotFound = 5 , AlreadyExists = 6 , PermissionDenied = 7 , Unauthenticated = 16 , ResourceExhausted = 8 , FailedPrecondition = 9 , Aborted = 10 , OutOfRange = 11 , Unimplemented = 12 , Internal = 13 , Unavailable = 14 , DataLoss = 15 } |
Channel's status codes. More... | |
Public Member Functions | |
QGrpcStatus (StatusCode code=StatusCode::Ok, const QString &message=QString()) | |
StatusCode | code () const |
code getter for QGrpcStatus::StatusCode received for prior gRPC call. | |
QString | message () const |
message getter for status message received for prior gRPC call. | |
bool | operator== (StatusCode code) const |
bool | operator!= (StatusCode code) const |
bool | operator== (const QGrpcStatus &other) const |
QGrpcStatus (const QGrpcStatus &other) | |
QGrpcStatus & | operator= (const QGrpcStatus &other) |
QGrpcStatus (QGrpcStatus &&other) | |
QGrpcStatus & | operator= (QGrpcStatus &&other) |
Properties | |
Q_GADGETStatusCode | code |
QString | message |
The QGrpcStatus class contains information about last gRPC operation.
In case of error in call/subscription processing QGrpcStatus will contain code any of non-Ok QGrpcStatus::StatusCode. This class combines QGrpcStatus::StatusCode and message returned from channel or QGrpc framework.
Channel's status codes.