10 #ifndef LLDB_SBError_h_ 
   11 #define LLDB_SBError_h_ 
   27   const char *GetCString() 
const;
 
   35   uint32_t GetError() 
const;
 
   37   lldb::ErrorType GetType() 
const;
 
   39   void SetError(uint32_t err, lldb::ErrorType type);
 
   41   void SetErrorToErrno();
 
   43   void SetErrorToGenericError();
 
   45   void SetErrorString(
const char *err_str);
 
   47   int SetErrorStringWithFormat(
const char *format, ...)
 
   48       __attribute__((format(printf, 2, 3)));
 
   70   lldb_private::Error *
get();
 
   72   lldb_private::Error *operator->();
 
   74   const lldb_private::Error &operator*() 
const;
 
   76   lldb_private::Error &ref();
 
   78   void SetError(
const lldb_private::Error &lldb_error);
 
   81   std::unique_ptr<lldb_private::Error> m_opaque_ap;
 
   83   void CreateIfNeeded();
 
   88 #endif // LLDB_SBError_h_