WPILibC++  2020.3.2-60-g3011ebe
wpi::ErrorInfo< ThisErrT, ParentErrT > Class Template Reference

Base class for user error types. More...

#include <Error.h>

Inheritance diagram for wpi::ErrorInfo< ThisErrT, ParentErrT >:

Public Member Functions

const void * dynamicClassID () const override
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 wpi::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.

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