matador::sql_exception Class Reference

An serializable exception class. More...

#include <sql_exception.hpp>

Inherits std::exception.

Public Member Functions

 sql_exception (const char *source, const char *what)
 
 sql_exception (std::string source, std::string what)
 
const char * what () const noexcept override
 
const char * source () const
 

Detailed Description

An serializable exception class.

This kind of exception is thrown, when an serializable dealing error occurs.

Constructor & Destructor Documentation

◆ sql_exception() [1/2]

matador::sql_exception::sql_exception ( const char *  source,
const char *  what 
)
inline

Creates a database_exception

Parameters
sourceThe source of the exception.
whatThe message of the exception.

◆ sql_exception() [2/2]

matador::sql_exception::sql_exception ( std::string  source,
std::string  what 
)
inline

Creates a database_exception

Parameters
sourceThe source of the exception.
whatThe message of the exception.

Member Function Documentation

◆ source()

const char * matador::sql_exception::source ( ) const
inline

Returns the source of the exception

Returns
The source of this exception.

◆ what()

const char * matador::sql_exception::what ( ) const
inlineoverridenoexcept

Returns the message of the exception

Returns
The message of this exception.

The documentation for this class was generated from the following file:
  • matador/sql/sql_exception.hpp