|
WPILibC++
2020.3.2
|
Base class for error info classes. More...
#include <Error.h>
Public Member Functions | |
| 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. More... | |
| 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 () |
Base class for error info classes.
Do not extend this directly: Extend the ErrorInfo template subclass instead.
|
pure virtual |
Convert this error to a std::error_code.
This is a temporary crutch to enable interaction with code still using std::error_code. It will be removed in the future.
Implemented in wpi::FileError, wpi::StringError, wpi::ECError, and wpi::ErrorList.