This class wraps a std::error_code in a Error.
More...
#include <Error.h>
|
|
void | setErrorCode (std::error_code EC) |
| |
| std::error_code | convertToErrorCode () const override |
| | Convert this error to a std::error_code. More...
|
| |
|
void | log (raw_ostream &OS) const override |
| | Print an error message to an output stream.
|
| |
|
const void * | dynamicClassID () const override |
| |
|
bool | isA (const void *const ClassID) const override |
| |
|
virtual std::string | message () const |
| | Return the error message as a string.
|
| |
|
template<typename ErrorInfoT > |
| bool | isA () const |
| |
|
|
| ECError (std::error_code EC) |
| |
|
|
static const void * | classID () |
| |
|
static const void * | classID () |
| |
This class wraps a std::error_code in a Error.
This is useful if you're writing an interface that returns a Error (or Expected) and you want to call code that still returns std::error_codes.
◆ convertToErrorCode()
| std::error_code wpi::ECError::convertToErrorCode |
( |
| ) |
const |
|
inlineoverridevirtual |
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.
Implements wpi::ErrorInfoBase.
The documentation for this class was generated from the following file:
- /__w/1/s/wpiutil/src/main/native/include/wpi/Error.h