src/lemon/error.h
changeset 1428 9ba88ddc629c
parent 1393 2edd8cd06eaf
equal deleted inserted replaced
11:e103d089a5ad 12:36f464a66272
   300 
   300 
   301     ///\e 
   301     ///\e 
   302     virtual const char* what() const throw() {
   302     virtual const char* what() const throw() {
   303       try {
   303       try {
   304 	std::ostringstream ostr;
   304 	std::ostringstream ostr;
       
   305 	ostr << exceptionName() << ": ";
   305 	if (message()) ostr << message();
   306 	if (message()) ostr << message();
   306 	if( file() || line() != 0 ) {
   307 	if( file() || line() != 0 ) {
   307 	  ostr << " (";
   308 	  ostr << " (";
   308 	  if( file() ) ostr << "in file '" << file() << "'";
   309 	  if( file() ) ostr << "in file '" << file() << "'";
   309 	  if( file() && line() != 0 ) ostr << " ";
   310 	  if( file() && line() != 0 ) ostr << " ";