OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QueryExecutionError Class Reference

#include <ErrorHandling.h>

+ Inheritance diagram for QueryExecutionError:
+ Collaboration diagram for QueryExecutionError:

Public Member Functions

 QueryExecutionError (const int32_t error_code, const std::string &e)
 
 QueryExecutionError (const int32_t error_code, const std::string &e, const QueryExecutionProperties &execution_properties)
 
 QueryExecutionError (const int32_t error_code, const QueryExecutionProperties &execution_properties)
 
 QueryExecutionError (const int32_t error_code)
 
int32_t getErrorCode () const
 
bool wasMultifragKernelLaunch () const
 

Protected Attributes

int32_t error_code_
 
boost::optional
< QueryExecutionProperties
execution_props_
 

Detailed Description

Definition at line 28 of file ErrorHandling.h.

Constructor & Destructor Documentation

QueryExecutionError::QueryExecutionError ( const int32_t  error_code,
const std::string &  e 
)
inline

Definition at line 30 of file ErrorHandling.h.

31  : std::runtime_error("Query execution failed with error code " +
32  std::to_string(error_code) + "\n" + e)
std::string to_string(char const *&&v)
def error_code
Definition: report.py:244
QueryExecutionError::QueryExecutionError ( const int32_t  error_code,
const std::string &  e,
const QueryExecutionProperties execution_properties 
)
inline

Definition at line 35 of file ErrorHandling.h.

38  : std::runtime_error("Query execution failed with error code " +
39  std::to_string(error_code) + "\n" + e)
41  , execution_props_(execution_properties) {}
boost::optional< QueryExecutionProperties > execution_props_
Definition: ErrorHandling.h:63
std::string to_string(char const *&&v)
def error_code
Definition: report.py:244
QueryExecutionError::QueryExecutionError ( const int32_t  error_code,
const QueryExecutionProperties execution_properties 
)
inline

Definition at line 43 of file ErrorHandling.h.

45  : std::runtime_error("Query execution failed with error code " +
48  , execution_props_(execution_properties) {}
boost::optional< QueryExecutionProperties > execution_props_
Definition: ErrorHandling.h:63
std::string to_string(char const *&&v)
def error_code
Definition: report.py:244
QueryExecutionError::QueryExecutionError ( const int32_t  error_code)
inline

Definition at line 50 of file ErrorHandling.h.

51  : std::runtime_error("Query execution failed with error code " +
std::string to_string(char const *&&v)
def error_code
Definition: report.py:244

Member Function Documentation

bool QueryExecutionError::wasMultifragKernelLaunch ( ) const
inline

Definition at line 57 of file ErrorHandling.h.

References execution_props_.

Referenced by RelAlgExecutor::executeWorkUnit().

57  {
58  return execution_props_ && (*execution_props_).was_multifrag_kernel_launch;
59  }
boost::optional< QueryExecutionProperties > execution_props_
Definition: ErrorHandling.h:63

+ Here is the caller graph for this function:

Member Data Documentation

int32_t QueryExecutionError::error_code_
protected

Definition at line 62 of file ErrorHandling.h.

Referenced by getErrorCode().

boost::optional<QueryExecutionProperties> QueryExecutionError::execution_props_
protected

Definition at line 63 of file ErrorHandling.h.

Referenced by wasMultifragKernelLaunch().


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