|
LLVM
4.0.0
|
This class wraps a std::error_code in a Error. More...
#include <Error.h>
Public Member Functions | |
| 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. More... | |
Public Member Functions inherited from llvm::ErrorInfo< ECError > | |
| bool | isA (const void *const ClassID) const override |
Public Member Functions inherited from llvm::ErrorInfoBase | |
| virtual | ~ErrorInfoBase ()=default |
| virtual std::string | message () const |
| Return the error message as a string. More... | |
| template<typename ErrorInfoT > | |
| bool | isA () const |
Static Public Attributes | |
| static char | ID = 0 |
Protected Member Functions | |
| ECError ()=default | |
| ECError (std::error_code EC) | |
Protected Attributes | |
| std::error_code | EC |
Friends | |
| Error | errorCodeToError (std::error_code) |
| Helper for converting an std::error_code to a Error. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::ErrorInfo< ECError > | |
| static const void * | classID () |
Static Public Member Functions inherited from llvm::ErrorInfoBase | |
| 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.
Definition at line 866 of file Support/Error.h.
|
protecteddefault |
|
inlineprotected |
Definition at line 879 of file Support/Error.h.
|
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 llvm::ErrorInfoBase.
Definition at line 871 of file Support/Error.h.
References EC.
|
inlineoverridevirtual |
Print an error message to an output stream.
Implements llvm::ErrorInfoBase.
Definition at line 872 of file Support/Error.h.
References EC.
|
inline |
Definition at line 870 of file Support/Error.h.
References EC.
Referenced by llvm::object::BinaryError::BinaryError(), and llvm::object::GenericBinaryError::GenericBinaryError().
|
friend |
Helper for converting an std::error_code to a Error.
Definition at line 79 of file Support/Error.cpp.
|
protected |
Definition at line 881 of file Support/Error.h.
Referenced by convertToErrorCode(), log(), and setErrorCode().
|
static |
Definition at line 875 of file Support/Error.h.
1.8.6