1//
2// OptionException.cpp
3//
4// Library: Util
5// Package: Options
6// Module: OptionException
7//
8// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/Util/OptionException.h"
16#include <typeinfo>
17
18
19namespace Poco {
20namespace Util {
21
22
23POCO_IMPLEMENT_EXCEPTION(OptionException, Poco::DataException, "Option exception")
24POCO_IMPLEMENT_EXCEPTION(UnknownOptionException, OptionException, "Unknown option specified")
25POCO_IMPLEMENT_EXCEPTION(AmbiguousOptionException, OptionException, "Ambiguous option specified")
26POCO_IMPLEMENT_EXCEPTION(MissingOptionException, OptionException, "Required option not specified")
27POCO_IMPLEMENT_EXCEPTION(MissingArgumentException, OptionException, "Missing option argument")
28POCO_IMPLEMENT_EXCEPTION(InvalidArgumentException, OptionException, "Invalid option argument")
29POCO_IMPLEMENT_EXCEPTION(UnexpectedArgumentException, OptionException, "Unexpected option argument")
30POCO_IMPLEMENT_EXCEPTION(IncompatibleOptionsException, OptionException, "Incompatible options")
31POCO_IMPLEMENT_EXCEPTION(DuplicateOptionException, OptionException, "Option must not be given more than once")
32POCO_IMPLEMENT_EXCEPTION(EmptyOptionException, OptionException, "Empty option specified")
33
34
35} } // namespace Poco::Util
36