[Lemon-commits] [lemon_svn] alpar: r1859 - hugo/trunk/src/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:48:15 CET 2006


Author: alpar
Date: Fri Apr 29 15:31:41 2005
New Revision: 1859

Modified:
   hugo/trunk/src/lemon/error.h

Log:
DataFormatError::what() also prints the name of the exception.


Modified: hugo/trunk/src/lemon/error.h
==============================================================================
--- hugo/trunk/src/lemon/error.h	(original)
+++ hugo/trunk/src/lemon/error.h	Fri Apr 29 15:31:41 2005
@@ -302,6 +302,7 @@
     virtual const char* what() const throw() {
       try {
 	std::ostringstream ostr;
+	ostr << exceptionName() << ": ";
 	if (message()) ostr << message();
 	if( file() || line() != 0 ) {
 	  ostr << " (";



More information about the Lemon-commits mailing list