PDI 1.5.5

the PDI data interface

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

 Error (PDI_status_t errcode)
 Creates a PDI error without a message. More...
 
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 *message)
 Creates a PDI error. More...
 
const char * what () const noexcept override
 
PDI_status_t status () const noexcept
 Returns status of the error. More...
 

Protected Attributes

PDI_status_t m_status
 status of the error More...
 
std::string m_what
 message of the error More...
 

Constructor & Destructor Documentation

◆ Error() [1/3]

PDI::Error::Error ( PDI_status_t  errcode)

Creates a PDI error without a message.

Parameters
[in]errcodethe error code of the error to create

◆ Error() [2/3]

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() [3/3]

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

Creates a PDI error.

Parameters
[in]errcodethe error code of the error to create
[in]messagean errror message

Member Function Documentation

◆ what()

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

◆ status()

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

Returns status of the error.

Returns
status of the error

Member Data Documentation

◆ m_status

PDI_status_t PDI::Error::m_status
protected

status of the error

◆ m_what

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

message of the error


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