blob: d3e3f756ab025340d5cef17b11b3887bafabd786 [file] [log] [blame]
Johnny Chen5cb6cab2011-07-19 22:41:47 +00001//===-- SWIG Interface for SBError ------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10namespace lldb {
11
12class SBError {
13public:
14 SBError ();
15
16 SBError (const lldb::SBError &rhs);
17
18 ~SBError();
19
20 const char *
21 GetCString () const;
22
23 void
24 Clear ();
25
26 bool
27 Fail () const;
28
29 bool
30 Success () const;
31
32 uint32_t
33 GetError () const;
34
35 lldb::ErrorType
36 GetType () const;
37
38 void
39 SetError (uint32_t err, lldb::ErrorType type);
40
41 void
42 SetErrorToErrno ();
43
44 void
45 SetErrorToGenericError ();
46
47 void
48 SetErrorString (const char *err_str);
49
50 int
51 SetErrorStringWithFormat (const char *format, ...);
52
53 bool
54 IsValid () const;
55
56 bool
57 GetDescription (lldb::SBStream &description);
58};
59
60} // namespace lldb