diff options
author | Anthony Neal <aneal@zeroc.com> | 2001-11-19 16:57:26 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2001-11-19 16:57:26 +0000 |
commit | 49f62a02524a98b8bd1c40cfd2c3f96d8070aeb5 (patch) | |
tree | 57959cf59c2e4c7e45449a63a5a8362cd3bbb05c /cpp/src/Ice/SecurityException2.cpp | |
parent | Fixed some bugs regarding exception message reporting. (diff) | |
download | ice-49f62a02524a98b8bd1c40cfd2c3f96d8070aeb5.tar.bz2 ice-49f62a02524a98b8bd1c40cfd2c3f96d8070aeb5.tar.xz ice-49f62a02524a98b8bd1c40cfd2c3f96d8070aeb5.zip |
Now Ssl (Security) exceptions are genereated from slice.
Diffstat (limited to 'cpp/src/Ice/SecurityException2.cpp')
-rw-r--r-- | cpp/src/Ice/SecurityException2.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/cpp/src/Ice/SecurityException2.cpp b/cpp/src/Ice/SecurityException2.cpp new file mode 100644 index 00000000000..90e5d2825bb --- /dev/null +++ b/cpp/src/Ice/SecurityException2.cpp @@ -0,0 +1,60 @@ +// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+#ifdef WIN32
+#pragma warning(disable:4786)
+#endif
+
+#include <Ice/SecurityException.h>
+
+using Ice::SocketException;
+using Ice::Exception;
+using std::ostream;
+
+
+void
+IceSecurity::SecurityException::ice_print(ostream& out) const
+{
+ Exception::ice_print(out);
+ if (!_message.empty())
+ {
+ out << ":\n" << _message;
+ }
+}
+
+void
+IceSecurity::Ssl::ConfigParseException::ice_print(ostream& out) const
+{
+ SecurityException::ice_print(out);
+}
+
+void
+IceSecurity::Ssl::ShutdownException::ice_print(ostream& out) const
+{
+ SecurityException::ice_print(out);
+}
+
+void
+IceSecurity::Ssl::ProtocolException::ice_print(ostream& out) const
+{
+ SecurityException::ice_print(out);
+}
+
+void
+IceSecurity::Ssl::CertificateException::ice_print(ostream& out) const
+{
+ SecurityException::ice_print(out);
+}
+
+void
+IceSecurity::Ssl::OpenSSL::ContextException::ice_print(ostream& out) const
+{
+ SecurityException::ice_print(out);
+}
+
|