summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/Options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceUtil/Options.cpp')
-rw-r--r--cpp/src/IceUtil/Options.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/cpp/src/IceUtil/Options.cpp b/cpp/src/IceUtil/Options.cpp
index 55615665a11..88626de2d9a 100644
--- a/cpp/src/IceUtil/Options.cpp
+++ b/cpp/src/IceUtil/Options.cpp
@@ -16,7 +16,7 @@ using namespace std;
using namespace IceUtil;
IceUtilInternal::APIException::APIException(const char* file, int line, const string& r)
- : IceUtil::Exception(file, line), reason(r)
+ : IceUtil::ExceptionHelper<APIException>(file, line), reason(r)
{
}
@@ -50,12 +50,6 @@ IceUtilInternal::APIException::ice_clone() const
}
#endif
-void
-IceUtilInternal::APIException::ice_throw() const
-{
- throw *this;
-}
-
ostream&
IceUtilInternal::operator<<(ostream& out, const IceUtilInternal::APIException& ex)
{
@@ -64,7 +58,7 @@ IceUtilInternal::operator<<(ostream& out, const IceUtilInternal::APIException& e
}
IceUtilInternal::BadOptException::BadOptException(const char* file, int line, const string& r)
- : IceUtil::Exception(file, line), reason(r)
+ : IceUtil::ExceptionHelper<BadOptException>(file, line), reason(r)
{
}
@@ -98,12 +92,6 @@ IceUtilInternal::BadOptException::ice_clone() const
}
#endif
-void
-IceUtilInternal::BadOptException::ice_throw() const
-{
- throw *this;
-}
-
ostream&
IceUtilInternal::operator<<(ostream& out, const IceUtilInternal::BadOptException& ex)
{