LLVM: llvm::ErrorInfo< ThisErrT, ParentErrT > Class Template Reference (original) (raw)

Base class for user error types. More...

#include "[llvm/Support/Error.h](llvm%5F2Support%5F2Error%5F8h%5Fsource.html)"

Inherits llvm::ErrorInfoBase.

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.
template
bool isA () const

template<typename ThisErrT, typename ParentErrT = ErrorInfoBase>
class llvm::ErrorInfo< ThisErrT, ParentErrT >

Base class for user error types.

Users should declare their error types like:

class MyError : public ErrorInfo { .... };

This class provides an implementation of the ErrorInfoBase::kind method, which is used by the Error RTTI system.

Definition at line 354 of file Error.h.

classID()

template<typename ThisErrT, typename ParentErrT = ErrorInfoBase>

dynamicClassID()

template<typename ThisErrT, typename ParentErrT = ErrorInfoBase>

const void * llvm::ErrorInfo< ThisErrT, ParentErrT >::dynamicClassID ( ) const inlineoverridevirtual

isA()

template<typename ThisErrT, typename ParentErrT = ErrorInfoBase>


The documentation for this class was generated from the following file: