LLVM  8.0.1
Public Member Functions | Static Public Attributes | List of all members
llvm::orc::rpc::InvalidSequenceNumberForResponse< SeqNoT > Class Template Reference

InvalidSequenceNumberForResponse is returned from handleOne when a response call arrives with a sequence number that doesn't correspond to any in-flight function call. More...

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

Inheritance diagram for llvm::orc::rpc::InvalidSequenceNumberForResponse< SeqNoT >:
Inheritance graph
[legend]
Collaboration diagram for llvm::orc::rpc::InvalidSequenceNumberForResponse< SeqNoT >:
Collaboration graph
[legend]

Public Member Functions

 InvalidSequenceNumberForResponse (SeqNoT SeqNo)
 
std::error_code convertToErrorCode () const override
 
void log (raw_ostream &OS) const override
 
- Public Member Functions inherited from llvm::ErrorInfo< InvalidSequenceNumberForResponse< SeqNoT >, RPCFatalError >
const void * dynamicClassID () const override
 
bool isA (const void *const ClassID) const override
 

Static Public Attributes

static char ID = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::ErrorInfo< InvalidSequenceNumberForResponse< SeqNoT >, RPCFatalError >
static const void * classID ()
 

Detailed Description

template<typename SeqNoT>
class llvm::orc::rpc::InvalidSequenceNumberForResponse< SeqNoT >

InvalidSequenceNumberForResponse is returned from handleOne when a response call arrives with a sequence number that doesn't correspond to any in-flight function call.

This error is fatal because Orc RPC needs to know how to parse the rest of the response call to know where the next call starts, and if it doesn't have a result parser for this sequence number it can't do that.

Definition at line 92 of file RPCUtils.h.

Constructor & Destructor Documentation

◆ InvalidSequenceNumberForResponse()

template<typename SeqNoT >
llvm::orc::rpc::InvalidSequenceNumberForResponse< SeqNoT >::InvalidSequenceNumberForResponse ( SeqNoT  SeqNo)
inline

Definition at line 97 of file RPCUtils.h.

Member Function Documentation

◆ convertToErrorCode()

template<typename SeqNoT >
std::error_code llvm::orc::rpc::InvalidSequenceNumberForResponse< SeqNoT >::convertToErrorCode ( ) const
inlineoverride

Definition at line 100 of file RPCUtils.h.

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

◆ log()

template<typename SeqNoT >
void llvm::orc::rpc::InvalidSequenceNumberForResponse< SeqNoT >::log ( raw_ostream OS) const
inlineoverride

Definition at line 104 of file RPCUtils.h.

Member Data Documentation

◆ ID

template<typename SeqNoT >
char llvm::orc::rpc::InvalidSequenceNumberForResponse< SeqNoT >::ID = 0
static

Definition at line 95 of file RPCUtils.h.


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