You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2008/07/30 08:28:53 UTC
svn commit: r680918 - /incubator/qpid/trunk/qpid/cpp/src/qpid/Exception.h
Author: astitcher
Date: Tue Jul 29 23:28:53 2008
New Revision: 680918
URL: http://svn.apache.org/viewvc?rev=680918&view=rev
Log:
Removed errno from a default parameter as I'm not convinced that this is
always portable as errno could be a macro
Modified:
incubator/qpid/trunk/qpid/cpp/src/qpid/Exception.h
Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/Exception.h
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/Exception.h?rev=680918&r1=680917&r2=680918&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/Exception.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/Exception.h Tue Jul 29 23:28:53 2008
@@ -34,7 +34,7 @@
{
/** Get the error message for a system number err, e.g. errno. */
-std::string strError(int err=errno);
+std::string strError(int err);
/**
* Base class for Qpid runtime exceptions.
@@ -55,7 +55,8 @@
/** Exception that includes an errno message. */
struct ErrnoException : public Exception {
- ErrnoException(const std::string& msg, int err=errno) : Exception(msg+": "+strError(err)) {}
+ ErrnoException(const std::string& msg, int err) : Exception(msg+": "+strError(err)) {}
+ ErrnoException(const std::string& msg) : Exception(msg+": "+strError(errno)) {}
};
struct SessionException : public Exception {