Class representing a list of error codes passed as argument to mysqltest command –error.  
 More...
#include <expected_errors.h>
Class representing a list of error codes passed as argument to mysqltest command –error. 
 
◆ iterator
◆ Expected_errors()
  
  
      
        
          | Expected_errors::Expected_errors  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ ~Expected_errors()
  
  
      
        
          | Expected_errors::~Expected_errors  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ add_error() [1/2]
      
        
          | void Expected_errors::add_error  | 
          ( | 
          const char *  | 
          sqlstate,  | 
        
        
           | 
           | 
          error_type  | 
          type  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Add a new error to the existing list of errors. 
- Parameters
 - 
  
    | sqlstate | SQLSTATE string  | 
    | type | Error type  | 
  
   
 
 
◆ add_error() [2/2]
      
        
          | void Expected_errors::add_error  | 
          ( | 
          std::uint32_t  | 
          error_code,  | 
        
        
           | 
           | 
          error_type  | 
          type  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Add a new error to the existing list of errors. 
- Parameters
 - 
  
    | error_code | Error number  | 
    | type | Error type  | 
  
   
 
 
◆ begin()
◆ clear_list()
  
  
      
        
          | void Expected_errors::clear_list  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Delete all errors from the vector. 
 
 
◆ count()
  
  
      
        
          | std::size_t Expected_errors::count  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Return length of the list containing errors. 
- Return values
 - 
  
  
 
 
 
◆ end()
◆ error_code()
  
  
      
        
          | unsigned int Expected_errors::error_code  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Return an error code of the first error in the list. 
- Return values
 - 
  
  
 
 
 
◆ error_list()
      
        
          | std::string Expected_errors::error_list  | 
          ( | 
           | ) | 
           | 
        
      
 
Return list of error codes. 
- Return values
 - 
  
  
 
 
 
◆ errors()
      
        
          | std::vector< unsigned int > Expected_errors::errors  | 
          ( | 
           | ) | 
           | 
        
      
 
Return list of error codes in the list. 
- Return values
 - 
  
  
 
 
 
◆ sqlstate()
  
  
      
        
          | const char * Expected_errors::sqlstate  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Return a sqlstate of the first error in the list. 
- Return values
 - 
  
  
 
 
 
◆ type()
Return an error type of the first error in the list. 
- Return values
 - 
  
    | Error | type (ERR_ERRNO or ERR_SQLSTATE)  | 
  
   
 
 
◆ m_errors
  
  
      
        
          | std::vector<std::unique_ptr<Error> > Expected_errors::m_errors | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: