PDI 1.0.1

Data exchange made easy

PDI::Error Class Reference
Inheritance diagram for PDI::Error:
PDI::Config_error PDI::Impl_error PDI::Plugin_error PDI::Right_error PDI::State_error PDI::System_error PDI::Type_error PDI::Unavailable_error PDI::Value_error

Public Member Functions

template<typename S , typename... Args>
 Error (PDI_status_t errcode, const S &format_str, Args &&... args)
 Creates a PDI error. More...
 
 Error (PDI_status_t errcode, const char *fmt)
 
const char * what () const noexcept override
 
PDI_status_t status () const noexcept
 

Protected Attributes

PDI_status_t m_status
 
std::string m_what
 

Constructor & Destructor Documentation

◆ Error() [1/2]

template<typename S , typename... Args>
PDI::Error::Error ( PDI_status_t  errcode,
const S &  format_str,
Args &&...  args 
)
inline

Creates a PDI error.

Parameters
[in]errcodethe error code of the error to create
[in]format_stran errror message as a python-style format
[in]argsthe python-style parameters for the message
See also
printf

◆ Error() [2/2]

PDI::Error::Error ( PDI_status_t  errcode,
const char *  fmt 
)

Member Function Documentation

◆ what()

const char* PDI::Error::what ( ) const
overridenoexcept

◆ status()

PDI_status_t PDI::Error::status ( ) const
noexcept

Member Data Documentation

◆ m_status

PDI_status_t PDI::Error::m_status
protected

◆ m_what

std::string PDI::Error::m_what
protected

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