1#ifndef EXPECTED_ERRORS_INCLUDED
2#define EXPECTED_ERRORS_INCLUDED
33#define MAX_ERROR_COUNT 20
70 std::vector<std::uint32_t>
errors();
Class representing a list of error codes passed as argument to mysqltest command –error.
Definition: expected_errors.h:37
Expected_errors()=default
iterator end()
Definition: expected_errors.h:45
void clear_list()
Delete all errors from the vector.
Definition: expected_errors.h:90
iterator begin()
Definition: expected_errors.h:44
const char * sqlstate()
Return a sqlstate of the first error in the list.
Definition: expected_errors.h:50
unsigned int error_code()
Return an error code of the first error in the list.
Definition: expected_errors.h:75
std::vector< std::unique_ptr< Error > > m_errors
Definition: expected_errors.h:94
void add_error(const char *sqlstate, error_type type)
Add a new error to the existing list of errors.
Definition: expected_errors.cc:48
~Expected_errors()=default
std::vector< std::unique_ptr< Error > >::iterator iterator
Definition: expected_errors.h:39
error_type type()
Return an error type of the first error in the list.
Definition: expected_errors.h:55
std::string error_list()
Return list of error codes.
Definition: expected_errors.cc:26
std::size_t count()
Return length of the list containing errors.
Definition: expected_errors.h:60
std::vector< std::uint32_t > errors()
Return list of error codes in the list.
Definition: expected_errors.cc:40
This file declares the Error class.
error_type
Definition: error.h:36