mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
Exception/ODBCException modifications to safely (SQLite ODBC tests were failing) propagate ODBC error messages up the hierarchy
SharedPtr/AutoPtr TypeHandler tests FreeTDS SQLServer tests changes from 1.3.3 Windows build scripts fixes from 1.3.3
This commit is contained in:
@@ -113,6 +113,12 @@ protected:
|
||||
Exception(int code = 0);
|
||||
/// Standard constructor.
|
||||
|
||||
void message(const std::string& msg);
|
||||
/// Sets the message for the exception.
|
||||
|
||||
void extendedMessage(const std::string& arg);
|
||||
/// Sets the extended message for the exception.
|
||||
|
||||
private:
|
||||
std::string _msg;
|
||||
Exception* _pNested;
|
||||
@@ -135,6 +141,12 @@ inline const std::string& Exception::message() const
|
||||
}
|
||||
|
||||
|
||||
inline void Exception::message(const std::string& msg)
|
||||
{
|
||||
_msg = msg;
|
||||
}
|
||||
|
||||
|
||||
inline int Exception::code() const
|
||||
{
|
||||
return _code;
|
||||
|
||||
Reference in New Issue
Block a user