LLVM
17.0.0git
|
Base class for user error types. More...
#include "llvm/Support/Error.h"
Public Member Functions | |
const void * | dynamicClassID () const override |
bool | isA (const void *const ClassID) const override |
![]() | |
virtual | ~ErrorInfoBase ()=default |
virtual void | log (raw_ostream &OS) const =0 |
Print an error message to an output stream. More... | |
virtual std::string | message () const |
Return the error message as a string. More... | |
virtual std::error_code | convertToErrorCode () const =0 |
Convert this error to a std::error_code. More... | |
template<typename ErrorInfoT > | |
bool | isA () const |
Static Public Member Functions | |
static const void * | classID () |
![]() | |
static const void * | classID () |
Base class for user error types.
Users should declare their error types like:
class MyError : public ErrorInfo<MyError> { .... };
This class provides an implementation of the ErrorInfoBase::kind method, which is used by the Error RTTI system.
|
inlinestatic |
Definition at line 352 of file Error.h.
Referenced by llvm::ErrorInfo< MSFError, StringError >::isA().
|
inlineoverridevirtual |
Implements llvm::ErrorInfoBase.
|
inlineoverridevirtual |
Reimplemented from llvm::ErrorInfoBase.
Reimplemented in llvm::ErrorInfo< PDBError, StringError >, llvm::ErrorInfo< WindowsManifestError, ECError >, and llvm::ErrorInfo< MSFError, StringError >.