OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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)
const int8_t const int64_t const uint64_t const int32_t const int64_t int64_t uint32_t const int64_t int32_t * error_code
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)
const int8_t const int64_t const uint64_t const int32_t const int64_t int64_t uint32_t const int64_t int32_t * error_code
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)
const int8_t const int64_t const uint64_t const int32_t const int64_t int64_t uint32_t const int64_t int32_t * error_code
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)
const int8_t const int64_t const uint64_t const int32_t const int64_t int64_t uint32_t const int64_t int32_t * error_code

Member Function Documentation

int32_t QueryExecutionError::getErrorCode ( ) const
inline

Definition at line 55 of file ErrorHandling.h.

References error_code_.

Referenced by RelAlgExecutor::executeTableFunction(), RelAlgExecutor::executeWorkUnit(), Executor::executeWorkUnitImpl(), RelAlgExecutor::getNDVEstimation(), and RelAlgExecutor::handleOutOfMemoryRetry().

55 { return error_code_; }

+ Here is the caller graph for this function:

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: