| 1 | // |
| 2 | // OptionException.h |
| 3 | // |
| 4 | // Library: Util |
| 5 | // Package: Options |
| 6 | // Module: OptionException |
| 7 | // |
| 8 | // Definition of the OptionException class. |
| 9 | // |
| 10 | // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. |
| 11 | // and Contributors. |
| 12 | // |
| 13 | // SPDX-License-Identifier: BSL-1.0 |
| 14 | // |
| 15 | |
| 16 | |
| 17 | #ifndef Util_OptionException_INCLUDED |
| 18 | #define Util_OptionException_INCLUDED |
| 19 | |
| 20 | |
| 21 | #include "Poco/Util/Util.h" |
| 22 | #include "Poco/Exception.h" |
| 23 | |
| 24 | |
| 25 | namespace Poco { |
| 26 | namespace Util { |
| 27 | |
| 28 | |
| 29 | POCO_DECLARE_EXCEPTION(Util_API, OptionException, Poco::DataException) |
| 30 | POCO_DECLARE_EXCEPTION(Util_API, UnknownOptionException, OptionException) |
| 31 | POCO_DECLARE_EXCEPTION(Util_API, AmbiguousOptionException, OptionException) |
| 32 | POCO_DECLARE_EXCEPTION(Util_API, MissingOptionException, OptionException) |
| 33 | POCO_DECLARE_EXCEPTION(Util_API, MissingArgumentException, OptionException) |
| 34 | POCO_DECLARE_EXCEPTION(Util_API, InvalidArgumentException, OptionException) |
| 35 | POCO_DECLARE_EXCEPTION(Util_API, UnexpectedArgumentException, OptionException) |
| 36 | POCO_DECLARE_EXCEPTION(Util_API, IncompatibleOptionsException, OptionException) |
| 37 | POCO_DECLARE_EXCEPTION(Util_API, DuplicateOptionException, OptionException) |
| 38 | POCO_DECLARE_EXCEPTION(Util_API, EmptyOptionException, OptionException) |
| 39 | |
| 40 | |
| 41 | } } // namespace Poco::Util |
| 42 | |
| 43 | |
| 44 | #endif // Util_OptionException_INCLUDED |
| 45 | |