MySQL 8.0.39
Source Code Documentation
Ignore_event_error_handler Class Reference

Ignore all errors notified from within plugin. More...

Inheritance diagram for Ignore_event_error_handler:
[legend]

Public Member Functions

 Ignore_event_error_handler (THD *thd, const char *event_name)
 Construction. More...
 
bool handle () override
 Ignore all errors. More...
 
void print_warning (const char *warn_msg, uint sql_errno, const char *sqlstate, const char *msg) override
 Custom warning print routine. More...
 
- Public Member Functions inherited from Audit_error_handler
 Audit_error_handler (THD *thd, const char *warning_message, bool active=true)
 Construction. More...
 
 ~Audit_error_handler () override
 Destruction. More...
 
bool handle_condition (THD *, uint sql_errno, const char *sqlstate, Sql_condition::enum_severity_level *, const char *msg) override
 Error handler. More...
 
int get_result (int result)
 Convert the result value returned from the audit api. More...
 

Private Attributes

const char * m_event_name
 Event name used in the warning message. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Internal_error_handler
 Internal_error_handler ()
 
Internal_error_handlerprev_internal_handler () const
 
virtual ~Internal_error_handler ()=default
 

Detailed Description

Ignore all errors notified from within plugin.

Constructor & Destructor Documentation

◆ Ignore_event_error_handler()

Ignore_event_error_handler::Ignore_event_error_handler ( THD thd,
const char *  event_name 
)
inline

Construction.

Parameters
thdCurrent thread data.
event_nameTextual form of the audit event enum.

Member Function Documentation

◆ handle()

bool Ignore_event_error_handler::handle ( )
inlineoverridevirtual

Ignore all errors.

Return values
Trueon error rejection, otherwise false.

Implements Audit_error_handler.

◆ print_warning()

void Ignore_event_error_handler::print_warning ( const char *  warn_msg,
uint  sql_errno,
const char *  sqlstate,
const char *  msg 
)
inlineoverridevirtual

Custom warning print routine.

Also prints the underlying error attributes if supplied.

Parameters
warn_msgWarning message to be printed.
sql_errnoThe error number of the underlying error
sqlstateThe SQL state of the underlying error. NULL if none
msgThe text of the underlying error. NULL if none

Reimplemented from Audit_error_handler.

Member Data Documentation

◆ m_event_name

const char* Ignore_event_error_handler::m_event_name
private

Event name used in the warning message.


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