summaryrefslogtreecommitdiff
path: root/cpp/src/slice2freezej/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2freezej/Main.cpp')
-rw-r--r--cpp/src/slice2freezej/Main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2freezej/Main.cpp b/cpp/src/slice2freezej/Main.cpp
index 256bf86821b..58e391d0d9f 100644
--- a/cpp/src/slice2freezej/Main.cpp
+++ b/cpp/src/slice2freezej/Main.cpp
@@ -223,7 +223,7 @@ FreezeGenerator::generate(UnitPtr& unit, const Dict& dict)
out << eb;
out << nl << "catch(java.io.UnsupportedEncodingException ex)";
out << sb;
- out << nl << "Ice.SystemException e = new Ice.SystemException();";
+ out << nl << "Ice.SyscallException e = new Ice.SyscallException();";
out << nl << "e.initCause(ex);";
out << nl << "throw e;";
out << eb;
@@ -375,7 +375,7 @@ FreezeGenerator::generate(UnitPtr& unit, const Dict& dict)
out << eb;
out << nl << "catch(java.io.UnsupportedEncodingException ex)";
out << sb;
- out << nl << "Ice.SystemException e = new Ice.SystemException();";
+ out << nl << "Ice.SyscallException e = new Ice.SyscallException();";
out << nl << "e.initCause(ex);";
out << nl << "throw e;";
out << eb;