aboutsummaryrefslogtreecommitdiffstats
path: root/src/exception.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-11-23 09:16:06 +0000
committerVincent Richard <[email protected]>2013-11-23 09:16:06 +0000
commitf91b1ec6a08f0b30350c15887763598a145c3889 (patch)
tree696583cd34bded11cccd39ce2cb0bd31f2d3936d /src/exception.cpp
parentDo not throw exception for normal code flow. Removed exceptions::no_such_addr... (diff)
downloadvmime-f91b1ec6a08f0b30350c15887763598a145c3889.tar.gz
vmime-f91b1ec6a08f0b30350c15887763598a145c3889.zip
Replaced "no_such_parameter" exception with "std::out_of_range". Fixed argument of std::out_of_range.
Diffstat (limited to 'src/exception.cpp')
-rw-r--r--src/exception.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/exception.cpp b/src/exception.cpp
index 45f672a3..042ac4f4 100644
--- a/src/exception.cpp
+++ b/src/exception.cpp
@@ -143,18 +143,6 @@ const char* no_digest_algorithm_available::name() const throw() { return "no_dig
//
-// no_such_parameter
-//
-
-no_such_parameter::~no_such_parameter() throw() {}
-no_such_parameter::no_such_parameter(const string& name, const exception& other)
- : exception(string("Parameter not found: '") + name + string("'."), other) {}
-
-exception* no_such_parameter::clone() const { return new no_such_parameter(*this); }
-const char* no_such_parameter::name() const throw() { return "no_such_parameter"; }
-
-
-//
// no_such_field
//