Poco::Data::ODBC

template < class H, SQLSMALLINT handleType >

class HandleException

Library: Data/ODBC
Package: ODBC
Header: Poco/Data/ODBC/ODBCException.h

Inheritance

Direct Base Classes: ODBCException

All Base Classes: Poco::Data::DataException, ODBCException, Poco::Exception, Poco::IOException, Poco::RuntimeException, std::exception

Member Summary

Member Functions: className, clone, diagnostics, errorString, name, operator =, rethrow, toString

Inherited Functions: className, clone, code, displayText, extendedMessage, message, name, nested, operator =, rethrow, what

Constructors

HandleException inline

HandleException(
    const H & handle
);

Creates HandleException

HandleException inline

HandleException(
    const HandleException & exc
);

Creates HandleException

HandleException inline

HandleException(
    const H & handle,
    const std::string & msg
);

Creates HandleException

HandleException inline

HandleException(
    const H & handle,
    const std::string & msg,
    const std::string & arg
);

Creates HandleException

HandleException inline

HandleException(
    const H & handle,
    const std::string & msg,
    const Poco::Exception & exc
);

Creates HandleException

Destructor

~HandleException inline

~HandleException() noexcept;

Destroys HandleException

Member Functions

className virtual inline

const char * className() const noexcept;

Returns the HandleException class name.

clone inline

Poco::Exception * clone() const;

Clones the HandleException

diagnostics inline

const Diagnostics < H, handleType > & diagnostics() const;

Returns error diagnostics.

errorString static inline

static std::string errorString(
    const H & handle
);

Returns the error diagnostics string for the handle.

name virtual inline

const char * name() const noexcept;

Returns the name of the exception

operator = inline

HandleException & operator = (
    const HandleException & exc
);

Assignment operator

rethrow virtual inline

void rethrow() const;

Re-throws the HandleException.

toString inline

std::string toString() const;

Returns the formatted error diagnostics for the handle.