summaryrefslogtreecommitdiff
path: root/libcult/cult/cli/exceptions.hxx
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-23 15:25:44 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-23 15:25:44 +0200
commit8286ac511144e4f17d34eac9affb97e50646344a (patch)
treef1af7320d7b6be6be059216d0ad08ac7b4f73fd0 /libcult/cult/cli/exceptions.hxx
parenta15cf65c44d5c224169c32ef5495b68c758134b7 (diff)
Imported Upstream version 4.0.0upstream/4.0.0
Diffstat (limited to 'libcult/cult/cli/exceptions.hxx')
-rw-r--r--libcult/cult/cli/exceptions.hxx136
1 files changed, 0 insertions, 136 deletions
diff --git a/libcult/cult/cli/exceptions.hxx b/libcult/cult/cli/exceptions.hxx
deleted file mode 100644
index 886e008..0000000
--- a/libcult/cult/cli/exceptions.hxx
+++ /dev/null
@@ -1,136 +0,0 @@
-// file : cult/cli/exceptions.hxx
-// author : Boris Kolpackov <boris@kolpackov.net>
-// copyright : Copyright (c) 2005-2010 Boris Kolpackov
-// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
-
-#ifndef CULT_CLI_EXCEPTIONS_HXX
-#define CULT_CLI_EXCEPTIONS_HXX
-
-#include <cult/types.hxx>
-
-#include <cult/eh/exception.hxx>
-
-namespace Cult
-{
- namespace CLI
- {
- //
- //
- class Exception: public virtual EH::Exception
- {
- };
-
- // Exception for FileArguments class.
- //
- class OptionFile: public virtual Exception
- {
- public:
- ~OptionFile () throw ()
- {
- }
-
- OptionFile (String const& description)
- : description_ (description)
- {
- }
-
- OptionFile (String const& value,
- String const& description)
- : value_ (value), description_ (description)
- {
- }
-
- String const&
- value () const
- {
- return value_;
- }
-
- String const&
- description () const
- {
- return description_;
- }
-
- private:
- String value_;
- String description_;
- };
-
- //
- //
- class UnexpectedOption: public virtual Exception
- {
- public:
- ~UnexpectedOption () throw ()
- {
- }
-
- UnexpectedOption (String const& option)
- : option_ (option)
- {
- }
-
- String const&
- option () const
- {
- return option_;
- }
-
- private:
- String option_;
- };
-
-
- //
- //
- class UnexpectedArgument: public virtual Exception
- {
- public:
- ~UnexpectedArgument () throw ()
- {
- }
-
- UnexpectedArgument (String const& argument)
- : argument_ (argument)
- {
- }
-
- String const&
- argument () const
- {
- return argument_;
- }
-
- private:
- String argument_;
- };
-
-
- //
- //
- class OptionFormat: public virtual Exception
- {
- public:
- ~OptionFormat () throw ()
- {
- }
-
- OptionFormat (String const& option)
- : option_ (option)
- {
- }
-
- String const&
- option () const
- {
- return option_;
- }
-
- private:
- String option_;
- };
- }
-}
-
-#endif // CULT_CLI_EXCEPTIONS_HXX