From db37466bcb8c399be5801fde9b7d5a305df678d6 Mon Sep 17 00:00:00 2001 From: Marian Krivos Date: Mon, 22 Aug 2011 16:21:56 +0000 Subject: [PATCH] trunk/branch integration: Exception update --- Foundation/include/Poco/Exception.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Foundation/include/Poco/Exception.h b/Foundation/include/Poco/Exception.h index ec25e80b1..a79c6e28d 100644 --- a/Foundation/include/Poco/Exception.h +++ b/Foundation/include/Poco/Exception.h @@ -112,13 +112,13 @@ public: 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; @@ -225,6 +225,7 @@ inline int Exception::code() const POCO_DECLARE_EXCEPTION(Foundation_API, LogicException, Exception) POCO_DECLARE_EXCEPTION(Foundation_API, AssertionViolationException, LogicException) POCO_DECLARE_EXCEPTION(Foundation_API, NullPointerException, LogicException) +POCO_DECLARE_EXCEPTION(Foundation_API, NullValueException, LogicException) POCO_DECLARE_EXCEPTION(Foundation_API, BugcheckException, LogicException) POCO_DECLARE_EXCEPTION(Foundation_API, InvalidArgumentException, LogicException) POCO_DECLARE_EXCEPTION(Foundation_API, NotImplementedException, LogicException) @@ -254,6 +255,7 @@ POCO_DECLARE_EXCEPTION(Foundation_API, SyntaxException, DataException) POCO_DECLARE_EXCEPTION(Foundation_API, CircularReferenceException, DataException) POCO_DECLARE_EXCEPTION(Foundation_API, PathSyntaxException, SyntaxException) POCO_DECLARE_EXCEPTION(Foundation_API, IOException, RuntimeException) +POCO_DECLARE_EXCEPTION(Foundation_API, ProtocolException, IOException) POCO_DECLARE_EXCEPTION(Foundation_API, FileException, IOException) POCO_DECLARE_EXCEPTION(Foundation_API, FileExistsException, FileException) POCO_DECLARE_EXCEPTION(Foundation_API, FileNotFoundException, FileException)