Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::ErrorManager Class Reference
Collaboration diagram for duckdb::ErrorManager:

Public Member Functions

template<typename... ARGS>
string FormatException (ErrorType error_type, ARGS &&...params)
 
DUCKDB_API string FormatExceptionRecursive (ErrorType error_type, vector< ExceptionFormatValue > &values)
 
template<class T , typename... ARGS>
string FormatExceptionRecursive (ErrorType error_type, vector< ExceptionFormatValue > &values, T param, ARGS &&...params)
 
void AddCustomError (ErrorType type, string new_error)
 Adds a custom error for a specific error type.
 

Static Public Member Functions

template<typename... ARGS>
static string FormatException (ClientContext &context, ErrorType error_type, ARGS &&...params)
 
static DUCKDB_API InvalidInputException InvalidUnicodeError (const String &input, const string &context)
 
static DUCKDB_API FatalException InvalidatedDatabase (ClientContext &context, const string &invalidated_msg)
 
static DUCKDB_API TransactionException InvalidatedTransaction (ClientContext &context)
 
static DUCKDB_API ErrorManagerGet (ClientContext &context)
 
static DUCKDB_API ErrorManagerGet (DatabaseInstance &context)
 

Private Attributes

map< ErrorType, string > custom_errors
 

Detailed Description

The error manager class is responsible for formatting error messages It allows for error messages to be overridden by extensions and clients

Member Function Documentation

◆ FormatException() [1/2]

template<typename... ARGS>
string duckdb::ErrorManager::FormatException ( ErrorType  error_type,
ARGS &&...  params 
)
inline
60299 {
60300 vector<ExceptionFormatValue> values;
60301 return FormatExceptionRecursive(error_type, values, std::forward<ARGS>(params)...);
60302 }

◆ FormatExceptionRecursive()

template<class T , typename... ARGS>
string duckdb::ErrorManager::FormatExceptionRecursive ( ErrorType  error_type,
vector< ExceptionFormatValue > &  values,
param,
ARGS &&...  params 
)
inline
60308 {
60309 values.push_back(ExceptionFormatValue::CreateFormatValue<T>(param));
60310 return FormatExceptionRecursive(error_type, values, std::forward<ARGS>(params)...);
60311 }

◆ FormatException() [2/2]

template<typename... ARGS>
static string duckdb::ErrorManager::FormatException ( ClientContext context,
ErrorType  error_type,
ARGS &&...  params 
)
inlinestatic
60314 {
60315 return Get(context).FormatException(error_type, std::forward<ARGS>(params)...);
60316 }

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