Poco::Data::ODBC

template < typename H, SQLSMALLINT handleType >

class Error

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

Description

Class encapsulating ODBC diagnostic record collection. Collection is generated during construction. Class provides access and string generation for the collection as well as individual diagnostic records.

Member Summary

Member Functions: count, diagnostics, operator =, toString

Constructors

Error inline

explicit Error(
    const H & handle
);

Creates the Error.

Error inline

Error(
    const Error & other
);

Creates the Error from another one.

Destructor

~Error inline

~Error();

Destroys the Error.

Member Functions

count inline

int count() const;

Returns the count of diagnostic records.

diagnostics inline

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

Returns the associated diagnostics.

operator = inline

Error & operator = (
    const Error & other
);

Assigns another Error to this one.

toString inline

std::string & toString(
    int index,
    std::string & str
) const;

Generates the string for the diagnostic record.

toString inline

std::string toString() const;

Generates the string for the diagnostic record collection.