LLVM  4.0.0
Public Member Functions | Static Public Attributes | List of all members
llvm::object::GenericBinaryError Class Reference

Generic binary error. More...

#include <Error.h>

Inheritance diagram for llvm::object::GenericBinaryError:
[legend]
Collaboration diagram for llvm::object::GenericBinaryError:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

GenericBinaryError::GenericBinaryError ( Twine  Msg)

Definition at line 63 of file Object/Error.cpp.

GenericBinaryError::GenericBinaryError ( Twine  Msg,
object_error  ECOverride 
)

Member Function Documentation

const std::string& llvm::object::GenericBinaryError::getMessage ( ) const
inline

Definition at line 70 of file Object/Error.h.

void GenericBinaryError::log ( raw_ostream OS) const
overridevirtual

Print an error message to an output stream.

Implements llvm::ErrorInfoBase.

Definition at line 70 of file Object/Error.cpp.

Member Data Documentation

char GenericBinaryError::ID = 0
static

Definition at line 67 of file Object/Error.h.


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