|
C++ YT Wrapper
C++ library for working with YT clusters
|
Generic error response returned by server. More...
#include <errors.h>
Public Member Functions | |
| TErrorResponse (TYtError error, const TString &requestId) | |
| const TYtError & | GetError () const |
| Get error object returned by server. | |
| TString | GetRequestId () const |
| Get if (correlation-id) of request that was responded with error. | |
| bool | IsFromTrailers () const |
| Is error parsed from response trailers. | |
| bool | IsTransportError () const |
| Check if error was caused by transport problems inside YT cluster. | |
| bool | IsResolveError () const |
| Check if error was caused by failure to resolve cypress path. | |
| bool | IsAccessDenied () const |
| Check if error was caused by lack of permissions to execute request. | |
| bool | IsUnauthorized () const |
| Check if error was caused by authorization issues. | |
| bool | IsConcurrentTransactionLockConflict () const |
| Check if error was caused by failure to lock object because of another transaction is holding lock. | |
| bool | IsRequestRateLimitExceeded () const |
| Check if error was caused by request quota limit exceeding. | |
| bool | IsRequestQueueSizeLimitExceeded () const |
| bool | IsChunkUnavailable () const |
| Check if error was caused by failure to get chunk. Such errors are almost always temporary. | |
| bool | IsRequestTimedOut () const |
| Check if error was caused by internal YT timeout. | |
| bool | IsNoSuchTransaction () const |
| Check if error was caused by trying to work with transaction that was finished or never existed. | |
| bool | IsConcurrentOperationsLimitReached () const |
| bool | IsOk () const |
| void | SetRawError (const TString &message) |
| void | SetError (TYtError error) |
| void | ParseFromJsonError (const TString &jsonError) |
| void | SetIsFromTrailers (bool isFromTrailers) |
Generic error response returned by server.
TErrorResponse can be thrown from almost any client method when server responds with error.
| bool NYT::TErrorResponse::IsOk | ( | ) | const |