C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::TErrorResponse Class Reference

Generic error response returned by server. More...

#include <errors.h>

Inheritance diagram for NYT::TErrorResponse:

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)

Detailed Description

Generic error response returned by server.

TErrorResponse can be thrown from almost any client method when server responds with error.

Member Function Documentation

◆ IsOk()

bool NYT::TErrorResponse::IsOk ( ) const
Deprecated
This method must not be used.

The documentation for this class was generated from the following file: