LLVM  6.0.0svn
Public Member Functions | Static Public Attributes | List of all members
llvm::orc::remote::ResourceNotFound< ResourceIdT > Class Template Reference

Template error for missing resources. More...

#include "llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h"

Inheritance diagram for llvm::orc::remote::ResourceNotFound< ResourceIdT >:
Inheritance graph
[legend]
Collaboration diagram for llvm::orc::remote::ResourceNotFound< ResourceIdT >:
Collaboration graph
[legend]

Public Member Functions

 ResourceNotFound (ResourceIdT ResourceId, std::string ResourceDescription="")
 
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< ResourceNotFound< ResourceIdT > >
const void * dynamicClassID () const override
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::ErrorInfo< ResourceNotFound< ResourceIdT > >
static const void * classID ()
 
- Static Public Member Functions inherited from llvm::ErrorInfoBase
static const void * classID ()
 

Detailed Description

template<typename ResourceIdT>
class llvm::orc::remote::ResourceNotFound< ResourceIdT >

Template error for missing resources.

Definition at line 30 of file OrcRemoteTargetRPCAPI.h.

Constructor & Destructor Documentation

◆ ResourceNotFound()

template<typename ResourceIdT >
llvm::orc::remote::ResourceNotFound< ResourceIdT >::ResourceNotFound ( ResourceIdT  ResourceId,
std::string  ResourceDescription = "" 
)
inline

Definition at line 35 of file OrcRemoteTargetRPCAPI.h.

Member Function Documentation

◆ convertToErrorCode()

template<typename ResourceIdT >
std::error_code llvm::orc::remote::ResourceNotFound< ResourceIdT >::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 llvm::ErrorInfoBase.

Definition at line 40 of file OrcRemoteTargetRPCAPI.h.

References llvm::orc::orcError(), and llvm::orc::UnknownResourceHandle.

◆ log()

template<typename ResourceIdT >
void llvm::orc::remote::ResourceNotFound< ResourceIdT >::log ( raw_ostream OS) const
inlineoverridevirtual

Print an error message to an output stream.

Implements llvm::ErrorInfoBase.

Definition at line 44 of file OrcRemoteTargetRPCAPI.h.

Member Data Documentation

◆ ID

template<typename ResourceIdT >
char llvm::orc::remote::ResourceNotFound< ResourceIdT >::ID = 0
static

Definition at line 33 of file OrcRemoteTargetRPCAPI.h.


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