Added some more RuntimeExceptions - InterruptedException, IndexOutOfBoundsException, UnsupportedOperationException, EmptyStackException, StackOverflowException, ArithmeticException

This commit is contained in:
Marian Krivos 2015-08-17 21:55:52 +02:00
parent 18125eb561
commit 1b1c4416dd
2 changed files with 13 additions and 0 deletions

View File

@ -231,6 +231,12 @@ POCO_DECLARE_EXCEPTION(Foundation_API, PoolOverflowException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, NoPermissionException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, OutOfMemoryException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, DataException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, InterruptedException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, IndexOutOfBoundsException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, UnsupportedOperationException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, EmptyStackException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, StackOverflowException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, ArithmeticException, RuntimeException)
POCO_DECLARE_EXCEPTION(Foundation_API, DataFormatException, DataException)
POCO_DECLARE_EXCEPTION(Foundation_API, SyntaxException, DataException)

View File

@ -155,6 +155,13 @@ POCO_IMPLEMENT_EXCEPTION(NoPermissionException, RuntimeException, "No permission
POCO_IMPLEMENT_EXCEPTION(OutOfMemoryException, RuntimeException, "Out of memory")
POCO_IMPLEMENT_EXCEPTION(DataException, RuntimeException, "Data error")
POCO_IMPLEMENT_EXCEPTION(InterruptedException, RuntimeException, "Interrupted")
POCO_IMPLEMENT_EXCEPTION(IndexOutOfBoundsException, RuntimeException, "Index out of bounds")
POCO_IMPLEMENT_EXCEPTION(UnsupportedOperationException, RuntimeException, "Unsupported operation")
POCO_IMPLEMENT_EXCEPTION(EmptyStackException, RuntimeException, "Empty stack")
POCO_IMPLEMENT_EXCEPTION(StackOverflowException, RuntimeException, "Stack overflow")
POCO_IMPLEMENT_EXCEPTION(ArithmeticException, RuntimeException, "Arithmetic error")
POCO_IMPLEMENT_EXCEPTION(DataFormatException, DataException, "Bad data format")
POCO_IMPLEMENT_EXCEPTION(SyntaxException, DataException, "Syntax error")
POCO_IMPLEMENT_EXCEPTION(CircularReferenceException, DataException, "Circular reference")