MySQL 26.7.0
Source Code Documentation
shcore::polyglot::Polyglot_generic_error Class Reference

This class is used to represent errors occurred in the polyglot library while executing one of the functions in the API. More...

#include <polyglot_error.h>

Inheritance diagram for shcore::polyglot::Polyglot_generic_error:
[legend]

Public Member Functions

 Polyglot_generic_error (const std::string &msg)
 
const char * what () const noexcept override
 
const std::string & message () const
 

Protected Member Functions

 Polyglot_generic_error ()=default
 
virtual void set_message (const std::string &msg)
 

Private Attributes

std::string m_message
 

Detailed Description

This class is used to represent errors occurred in the polyglot library while executing one of the functions in the API.

These errors don't have more details, in general can be caused for 2 reasons:

  • The polyglot context got closed before executing the function.
  • En error occurred on the guest language while executing the operation.

Constructor & Destructor Documentation

◆ Polyglot_generic_error() [1/2]

shcore::polyglot::Polyglot_generic_error::Polyglot_generic_error ( const std::string &  msg)
inlineexplicit

◆ Polyglot_generic_error() [2/2]

shcore::polyglot::Polyglot_generic_error::Polyglot_generic_error ( )
protecteddefault

Member Function Documentation

◆ message()

const std::string & shcore::polyglot::Polyglot_generic_error::message ( ) const
inline

◆ set_message()

virtual void shcore::polyglot::Polyglot_generic_error::set_message ( const std::string &  msg)
inlineprotectedvirtual

◆ what()

const char * shcore::polyglot::Polyglot_generic_error::what ( ) const
inlineoverridenoexcept

Member Data Documentation

◆ m_message

std::string shcore::polyglot::Polyglot_generic_error::m_message
private

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