OmniSciDB  a5dc49c757
 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 ErrorCode error_code, const std::string &e)
 
 QueryExecutionError (const ErrorCode error_code, const std::string &e, const QueryExecutionProperties &execution_properties)
 
 QueryExecutionError (const ErrorCode error_code, const QueryExecutionProperties &execution_properties)
 
 QueryExecutionError (const ErrorCode error_code)
 
 QueryExecutionError (const int32_t error_code)
 
int32_t getErrorCode () const
 
bool hasErrorCode (ErrorCode const ec) const
 
bool wasMultifragKernelLaunch () const
 

Static Public Member Functions

static std::string toString (int32_t error_code)
 

Protected Attributes

int32_t error_code_
 
boost::optional
< QueryExecutionProperties
execution_props_
 

Detailed Description

Definition at line 30 of file ErrorHandling.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file ErrorHandling.h.

33  : std::runtime_error(std::string("Query execution failed with error code ") +
34  to_string(error_code) + "\n" + e)
35  , error_code_(static_cast<int32_t>(error_code)) {}
std::string to_string(char const *&&v)
def error_code
Definition: report.py:234
QueryExecutionError::QueryExecutionError ( const ErrorCode  error_code,
const std::string &  e,
const QueryExecutionProperties execution_properties 
)
inline

Definition at line 37 of file ErrorHandling.h.

40  : std::runtime_error(std::string("Query execution failed with error code ") +
41  to_string(error_code) + "\n" + e)
42  , error_code_(static_cast<int32_t>(error_code))
43  , execution_props_(execution_properties) {}
boost::optional< QueryExecutionProperties > execution_props_
Definition: ErrorHandling.h:83
std::string to_string(char const *&&v)
def error_code
Definition: report.py:234
QueryExecutionError::QueryExecutionError ( const ErrorCode  error_code,
const QueryExecutionProperties execution_properties 
)
inline

Definition at line 45 of file ErrorHandling.h.

47  : std::runtime_error(std::string("Query execution failed with error code ") +
49  , error_code_(static_cast<int32_t>(error_code))
50  , execution_props_(execution_properties) {}
boost::optional< QueryExecutionProperties > execution_props_
Definition: ErrorHandling.h:83
std::string to_string(char const *&&v)
def error_code
Definition: report.py:234
QueryExecutionError::QueryExecutionError ( const ErrorCode  error_code)
inline

Definition at line 52 of file ErrorHandling.h.

53  : std::runtime_error(std::string("Query execution failed with error code ") +
55  , error_code_(static_cast<int32_t>(error_code)) {}
std::string to_string(char const *&&v)
def error_code
Definition: report.py:234
QueryExecutionError::QueryExecutionError ( const int32_t  error_code)
inline

Definition at line 58 of file ErrorHandling.h.

59  : std::runtime_error("Query execution failed with error code " +
static std::string toString(int32_t error_code)
Definition: ErrorHandling.h:69
def error_code
Definition: report.py:234

Member Function Documentation

int32_t QueryExecutionError::getErrorCode ( ) const
inline

Definition at line 63 of file ErrorHandling.h.

References error_code_.

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

63 { return error_code_; }

+ Here is the caller graph for this function:

bool QueryExecutionError::hasErrorCode ( ErrorCode const  ec) const
inline
static std::string QueryExecutionError::toString ( int32_t  error_code)
inlinestatic

Definition at line 69 of file ErrorHandling.h.

References to_string().

69  {
70  if (size_t(error_code) < size_t(ErrorCode::N_)) {
71  return to_string(static_cast<ErrorCode>(error_code));
72  } else {
73  return std::to_string(error_code);
74  }
75  }
std::string to_string(char const *&&v)
def error_code
Definition: report.py:234

+ Here is the call graph for this function:

bool QueryExecutionError::wasMultifragKernelLaunch ( ) const
inline

Definition at line 77 of file ErrorHandling.h.

References execution_props_.

Referenced by RelAlgExecutor::handleOutOfMemoryRetry().

77  {
78  return execution_props_ && (*execution_props_).was_multifrag_kernel_launch;
79  }
boost::optional< QueryExecutionProperties > execution_props_
Definition: ErrorHandling.h:83

+ Here is the caller graph for this function:

Member Data Documentation

int32_t QueryExecutionError::error_code_
protected

Definition at line 82 of file ErrorHandling.h.

Referenced by getErrorCode(), and hasErrorCode().

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

Definition at line 83 of file ErrorHandling.h.

Referenced by wasMultifragKernelLaunch().


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