|
LLVM
4.0.0
|
Generic binary error. More...
#include <Error.h>
Public Member Functions | |
| GenericBinaryError (Twine Msg) | |
| GenericBinaryError (Twine Msg, object_error ECOverride) | |
| const std::string & | getMessage () const |
| void | log (raw_ostream &OS) const override |
| Print an error message to an output stream. More... | |
Public Member Functions inherited from llvm::ErrorInfo< GenericBinaryError, BinaryError > | |
| bool | isA (const void *const ClassID) const override |
Public Member Functions inherited from llvm::object::BinaryError | |
| BinaryError () | |
Public Member Functions inherited from llvm::ECError | |
| 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 |
Static Public Attributes inherited from llvm::object::BinaryError | |
| static char | ID = 0 |
Static Public Attributes inherited from llvm::ECError | |
| static char | ID = 0 |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::ErrorInfo< GenericBinaryError, BinaryError > | |
| static const void * | classID () |
Static Public Member Functions inherited from llvm::ErrorInfo< BinaryError, ECError > | |
| static const void * | classID () |
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 () |
Protected Member Functions inherited from llvm::ECError | |
| ECError ()=default | |
| ECError (std::error_code EC) | |
Protected Attributes inherited from llvm::ECError | |
| std::error_code | EC |
Generic binary error.
For errors that don't require their own specific sub-error (most errors) this class can be used to describe the error via a string message.
Definition at line 65 of file Object/Error.h.
| GenericBinaryError::GenericBinaryError | ( | Twine | Msg | ) |
Definition at line 63 of file Object/Error.cpp.
| GenericBinaryError::GenericBinaryError | ( | Twine | Msg, |
| object_error | ECOverride | ||
| ) |
Definition at line 65 of file Object/Error.cpp.
References llvm::object::make_error_code(), and llvm::ECError::setErrorCode().
|
inline |
Definition at line 70 of file Object/Error.h.
|
overridevirtual |
Print an error message to an output stream.
Implements llvm::ErrorInfoBase.
Definition at line 70 of file Object/Error.cpp.
|
static |
Definition at line 67 of file Object/Error.h.
1.8.6