1 //===-- SBError.h -----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBError_h_
11 #define LLDB_SBError_h_
13 #include "lldb/API/SBDefines.h"
21 SBError (const lldb::SBError &rhs);
26 operator =(const lldb::SBError &rhs);
47 SetError (uint32_t err, lldb::ErrorType type);
53 SetErrorToGenericError ();
56 SetErrorString (const char *err_str);
59 SetErrorStringWithFormat (const char *format, ...) __attribute__ ((format (printf, 2, 3)));
65 GetDescription (lldb::SBStream &description);
69 friend class SBCommandReturnObject;
71 friend class SBDebugger;
72 friend class SBCommunication;
73 friend class SBHostOS;
74 friend class SBInputReader;
75 friend class SBProcess;
76 friend class SBThread;
77 friend class SBTarget;
79 friend class SBWatchpoint;
87 const lldb_private::Error &
94 SetError (const lldb_private::Error &lldb_error);
97 std::unique_ptr<lldb_private::Error> m_opaque_ap;
106 #endif // LLDB_SBError_h_