LLVM 20.0.0git
|
Base class for user error types. More...
#include "llvm/Support/Error.h"
Inherits llvm::ErrorInfoBase.
Inherited by llvm::LLVMRemarkSetupErrorInfo< LLVMRemarkSetupFileError >, llvm::LLVMRemarkSetupErrorInfo< LLVMRemarkSetupFormatError >, and llvm::LLVMRemarkSetupErrorInfo< LLVMRemarkSetupPatternError >.
Public Member Functions | |
const void * | dynamicClassID () const override |
bool | isA (const void *const ClassID) const override |
Public Member Functions inherited from llvm::ErrorInfoBase | |
virtual | ~ErrorInfoBase ()=default |
virtual void | log (raw_ostream &OS) const =0 |
Print an error message to an output stream. | |
virtual std::string | message () const |
Return the error message as a string. | |
virtual std::error_code | convertToErrorCode () const =0 |
Convert this error to a std::error_code. | |
virtual const void * | dynamicClassID () const =0 |
virtual bool | isA (const void *const ClassID) const |
template<typename ErrorInfoT > | |
bool | isA () const |
Static Public Member Functions | |
static const void * | classID () |
Static Public Member Functions inherited from llvm::ErrorInfoBase | |
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 359 of file Error.h.
Referenced by llvm::ErrorInfo< ThisErrT, ParentErrT >::isA().
|
inlineoverridevirtual |
Implements llvm::ErrorInfoBase.
Reimplemented in llvm::ErrorInfo< HTTPServerError, ECError >, llvm::ErrorInfo< CodeViewError, StringError >, llvm::ErrorInfo< MSFError, StringError >, llvm::ErrorInfo< BinaryError, ECError >, llvm::ErrorInfo< DIAError, StringError >, llvm::ErrorInfo< PDBError, StringError >, llvm::ErrorInfo< RawError, StringError >, and llvm::ErrorInfo< WindowsManifestError, ECError >.
|
inlineoverridevirtual |
Reimplemented from llvm::ErrorInfoBase.
Reimplemented in llvm::ErrorInfo< HTTPServerError, ECError >, llvm::ErrorInfo< CodeViewError, StringError >, llvm::ErrorInfo< MSFError, StringError >, llvm::ErrorInfo< BinaryError, ECError >, llvm::ErrorInfo< DIAError, StringError >, llvm::ErrorInfo< PDBError, StringError >, llvm::ErrorInfo< RawError, StringError >, and llvm::ErrorInfo< WindowsManifestError, ECError >.
Definition at line 363 of file Error.h.
References llvm::ErrorInfo< ThisErrT, ParentErrT >::classID().