class ErrorInfoBase
Declaration
class ErrorInfoBase { /* full declaration omitted */ };
Description
Base class for error info classes. Do not extend this directly: Extend the ErrorInfo template subclass instead.
Declared at: llvm/include/llvm/Support/Error.h:46
Member Variables
- private static char ID
Method Overview
- private virtual void anchor()
- public static const void * classID()
- public virtual std::error_code convertToErrorCode() const
- public virtual const void * dynamicClassID() const
- public virtual bool isA(const void *const ClassID) const
- public template <typename ErrorInfoT>bool isA() const
- public virtual void log(llvm::raw_ostream & OS) const
- public virtual std::string message() const
- public virtual ~ErrorInfoBase()
Methods
¶virtual void anchor()
virtual void anchor()
Declared at: llvm/include/llvm/Support/Error.h:85
¶static const void* classID()
static const void* classID()
Declared at: llvm/include/llvm/Support/Error.h:68
¶virtual std::error_code convertToErrorCode() const
virtual std::error_code convertToErrorCode() const
Description
Convert this error to a std::error_code. This is a temporary crutch to enable interaction with code still using std::error_code. It will be removed in the future.
Declared at: llvm/include/llvm/Support/Error.h:65
¶virtual const void* dynamicClassID() const
virtual const void* dynamicClassID() const
Declared at: llvm/include/llvm/Support/Error.h:71
¶virtual bool isA(const void* const ClassID) const
virtual bool isA(const void* const ClassID) const
Declared at: llvm/include/llvm/Support/Error.h:75
Parameters
- const void* const ClassID
¶template <typename ErrorInfoT>
bool isA() const
template <typename ErrorInfoT>
bool isA() const
Declared at: llvm/include/llvm/Support/Error.h:80
Templates
- ErrorInfoT
¶virtual void log(llvm::raw_ostream& OS) const
virtual void log(llvm::raw_ostream& OS) const
Description
Print an error message to an output stream.
Declared at: llvm/include/llvm/Support/Error.h:51
Parameters
¶virtual std::string message() const
virtual std::string message() const
Description
Return the error message as a string.
Declared at: llvm/include/llvm/Support/Error.h:54
¶virtual ~ErrorInfoBase()
virtual ~ErrorInfoBase()
Declared at: llvm/include/llvm/Support/Error.h:48