LLVM  4.0.0
Public Member Functions | Static Public Member Functions | List of all members
llvm::ErrorInfo< ThisErrT, ParentErrT > Class Template Reference

Base class for user error types. More...

#include <Error.h>

Inheritance diagram for llvm::ErrorInfo< ThisErrT, ParentErrT >:
[legend]
Collaboration diagram for llvm::ErrorInfo< ThisErrT, ParentErrT >:
[legend]

Public Member Functions

bool isA (const void *const ClassID) const override
 

Static Public Member Functions

static const void * classID ()
 

Detailed Description

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<MyError> { .... };

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

Definition at line 317 of file Support/Error.h.

Member Function Documentation

template<typename ThisErrT, typename ParentErrT = ErrorInfoBase>
static const void* llvm::ErrorInfo< ThisErrT, ParentErrT >::classID ( )
inlinestatic

Definition at line 323 of file Support/Error.h.

Referenced by llvm::ErrorInfo< InstrProfError >::isA().

template<typename ThisErrT, typename ParentErrT = ErrorInfoBase>
bool llvm::ErrorInfo< ThisErrT, ParentErrT >::isA ( const void *const  ClassID) const
inlineoverride

Reimplemented in llvm::ErrorInfo< GenericBinaryError, BinaryError >.

Definition at line 319 of file Support/Error.h.


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