| 
    Kudu C++ client API
    
   | 
 
A representation of an operation's outcome. More...
#include <status.h>
Public Member Functions | |
| Status () | |
| Create an object representing success status.  | |
| Status (const Status &s) | |
| void | operator= (const Status &s) | 
| bool | ok () const | 
| bool | IsNotFound () const | 
| bool | IsCorruption () const | 
| bool | IsNotSupported () const | 
| bool | IsIOError () const | 
| bool | IsInvalidArgument () const | 
| bool | IsAlreadyPresent () const | 
| bool | IsRuntimeError () const | 
| bool | IsNetworkError () const | 
| bool | IsIllegalState () const | 
| bool | IsNotAuthorized () const | 
| bool | IsAborted () const | 
| bool | IsRemoteError () const | 
| bool | IsServiceUnavailable () const | 
| bool | IsTimedOut () const | 
| bool | IsUninitialized () const | 
| bool | IsConfigurationError () const | 
| bool | IsIncomplete () const | 
| bool | IsEndOfFile () const | 
| std::string | ToString () const | 
| std::string | CodeAsString () const | 
| Slice | message () const | 
| int16_t | posix_code () const | 
| Status | CloneAndPrepend (const Slice &msg) const | 
| Status | CloneAndAppend (const Slice &msg) const | 
| size_t | memory_footprint_excluding_this () const | 
| size_t | memory_footprint_including_this () const | 
Static Public Member Functions | ||||||||||
| static Status | OK () | |||||||||
Methods to build status objects for various types of errors.  | ||||||||||
 
  | ||||||||||
| static Status | NotFound (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | Corruption (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | NotSupported (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | InvalidArgument (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | IOError (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | AlreadyPresent (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | RuntimeError (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | NetworkError (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | IllegalState (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | NotAuthorized (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | Aborted (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | RemoteError (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | ServiceUnavailable (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | TimedOut (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | Uninitialized (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | ConfigurationError (const Slice &msg, const Slice &msg2=Slice(), int16_t posix_code=-1) | |||||||||
| static Status | Incomplete (const Slice &msg, const Slice &msg2=Slice(), int64_t posix_code=-1) | |||||||||
| static Status | EndOfFile (const Slice &msg, const Slice &msg2=Slice(), int64_t posix_code=-1) | |||||||||
A representation of an operation's outcome.
      
  | 
  inline | 
Copy the specified status.
| [in] | s | The status object to copy from. | 
Clone the object and add the specified suffix to the clone's message.
| [in] | msg | The message to append. | 
Clone the object and add the specified prefix to the clone's message.
| [in] | msg | The message to prepend. | 
| std::string kudu::Status::CodeAsString | ( | ) | const | 
      
  | 
  inline | 
true iff the status indicates an Aborted error. 
      
  | 
  inline | 
true iff the status indicates an AlreadyPresent error. 
      
  | 
  inline | 
true iff the status indicates ConfigurationError. 
      
  | 
  inline | 
true iff the status indicates a Corruption error. 
      
  | 
  inline | 
true iff the status indicates end of file. 
      
  | 
  inline | 
true iff the status indicates an IllegalState error. 
      
  | 
  inline | 
true iff the status indicates Incomplete. 
      
  | 
  inline | 
true iff the status indicates an InvalidArgument error. 
      
  | 
  inline | 
true iff the status indicates an IOError. 
      
  | 
  inline | 
true iff the status indicates a NetworkError. 
      
  | 
  inline | 
true iff the status indicates a NotAuthorized error. 
      
  | 
  inline | 
true iff the status indicates a NotFound error. 
      
  | 
  inline | 
true iff the status indicates a NotSupported error. 
      
  | 
  inline | 
true iff the status indicates a RemoteError. 
      
  | 
  inline | 
true iff the status indicates a RuntimeError. 
      
  | 
  inline | 
true iff the status indicates ServiceUnavailable. 
      
  | 
  inline | 
true iff the status indicates TimedOut. 
      
  | 
  inline | 
true iff the status indicates Uninitialized. | size_t kudu::Status::memory_footprint_excluding_this | ( | ) | const | 
| size_t kudu::Status::memory_footprint_including_this | ( | ) | const | 
| Slice kudu::Status::message | ( | ) | const | 
      
  | 
  inlinestatic | 
      
  | 
  inline | 
true iff the status indicates success. 
      
  | 
  inline | 
Assign the specified status.
| [in] | s | The status object to assign from. | 
| int16_t kudu::Status::posix_code | ( | ) | const | 
-1 if there is none. | std::string kudu::Status::ToString | ( | ) | const |