summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Instance.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-06-22 19:23:31 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-06-22 19:23:31 +0000
commit5adb343e65d4c064152d87ecec014bbec84042d4 (patch)
tree75c809d59ec4874e519cd338714bc5627682edce /cpp/src/Ice/Instance.cpp
parentAdded session tests, completed update tests. (diff)
downloadice-5adb343e65d4c064152d87ecec014bbec84042d4.tar.bz2
ice-5adb343e65d4c064152d87ecec014bbec84042d4.tar.xz
ice-5adb343e65d4c064152d87ecec014bbec84042d4.zip
Added FileException
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r--cpp/src/Ice/Instance.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp
index 3b9403d825e..73c99c93176 100644
--- a/cpp/src/Ice/Instance.cpp
+++ b/cpp/src/Ice/Instance.cpp
@@ -420,7 +420,8 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Prope
FILE* file = freopen(stdOutFilename.c_str(), "a", stdout);
if(file == 0)
{
- SyscallException ex(__FILE__, __LINE__);
+ FileException ex(__FILE__, __LINE__);
+ ex.path = stdOutFilename;
ex.error = getSystemErrno();
throw ex;
}
@@ -431,7 +432,8 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Prope
FILE* file = freopen(stdErrFilename.c_str(), "a", stderr);
if(file == 0)
{
- SyscallException ex(__FILE__, __LINE__);
+ FileException ex(__FILE__, __LINE__);
+ ex.path = stdErrFilename;
ex.error = getSystemErrno();
throw ex;
}