LibreOffice Module connectivity (master) 1
|
#include <dbexception.hxx>
Public Member Functions | |
SQLExceptionIteratorHelper (const css::sdbc::SQLException &_rChainStart) | |
constructs an iterator instance from an SQLException More... | |
SQLExceptionIteratorHelper (const SQLExceptionInfo &_rErrorInfo) | |
constructs an iterator instance from an SQLExceptionInfo More... | |
bool | hasMoreElements () const |
determines whether there are more elements in the exception chain More... | |
void | current (SQLExceptionInfo &_out_rInfo) const |
retrieves the current element in the chain, or <NULL> if the chain has been completely traveled. More... | |
const css::sdbc::SQLException * | next () |
proceeds to the next element in the chain More... | |
void | next (SQLExceptionInfo &_out_rInfo) |
proceeds to the next element in the chain More... | |
Private Attributes | |
const css::sdbc::SQLException * | m_pCurrent |
SQLExceptionInfo::TYPE | m_eCurrentType |
Definition at line 148 of file dbexception.hxx.
dbtools::SQLExceptionIteratorHelper::SQLExceptionIteratorHelper | ( | const css::sdbc::SQLException & | _rChainStart | ) |
constructs an iterator instance from an SQLException
_rChainStart | the start of the exception chain to iterate. Must live as long as the iterator instances lives, at least. |
Definition at line 269 of file dbexception.cxx.
References TYPE.
dbtools::SQLExceptionIteratorHelper::SQLExceptionIteratorHelper | ( | const SQLExceptionInfo & | _rErrorInfo | ) |
constructs an iterator instance from an SQLExceptionInfo
_rErrorInfo | the start of the exception chain to iterate. Must live as long as the iterator instances lives, at least. |
Definition at line 257 of file dbexception.cxx.
References dbtools::SQLExceptionInfo::getType(), dbtools::SQLExceptionInfo::isValid(), m_eCurrentType, m_pCurrent, TYPE, and Undefined.
void dbtools::SQLExceptionIteratorHelper::current | ( | SQLExceptionInfo & | _out_rInfo | ) | const |
retrieves the current element in the chain, or <NULL> if the chain has been completely traveled.
In opposite to the second <member>current</member>, this version allows typed access to the respective SQLException.
Definition at line 276 of file dbexception.cxx.
References Any, m_eCurrentType, m_pCurrent, dbtools::SQLExceptionInfo::SQLContext, dbtools::SQLExceptionInfo::SQLException, and dbtools::SQLExceptionInfo::SQLWarning.
Referenced by next().
|
inline |
determines whether there are more elements in the exception chain
Definition at line 172 of file dbexception.hxx.
Referenced by dbtools::lcl_concatWarnings(), and next().
const css::sdbc::SQLException * dbtools::SQLExceptionIteratorHelper::next | ( | ) |
proceeds to the next element in the chain
Definition at line 299 of file dbexception.cxx.
References hasMoreElements(), isAssignableFrom(), m_eCurrentType, m_pCurrent, dbtools::SQLExceptionInfo::SQLContext, dbtools::SQLExceptionInfo::SQLException, dbtools::SQLExceptionInfo::SQLWarning, and dbtools::SQLExceptionInfo::Undefined.
Referenced by dbtools::lcl_concatWarnings(), and next().
void dbtools::SQLExceptionIteratorHelper::next | ( | SQLExceptionInfo & | _out_rInfo | ) |
proceeds to the next element in the chain
In opposite to the second <member>current</member>, this version allows typed access to the respective SQLException.
Definition at line 342 of file dbexception.cxx.
|
private |
Definition at line 151 of file dbexception.hxx.
Referenced by current(), next(), and SQLExceptionIteratorHelper().
|
private |
Definition at line 150 of file dbexception.hxx.
Referenced by current(), next(), and SQLExceptionIteratorHelper().