PDI 1.7.0-alpha.2023-10-26

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.
 
template<typename S , typename... Args>
 Error (PDI_status_t errcode, const S &format_str, Args &&... args)
 Creates a PDI error.
 
 Error (PDI_status_t errcode, const char *message)
 Creates a PDI error.
 
const char * what () const noexcept override
 
PDI_status_t status () const noexcept
 Returns status of the error.
 

Protected Attributes

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

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: