From d6982a8126b93122c26741a0ec087a599f8a645f Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Mon, 5 Aug 2002 15:27:16 +0000 Subject: #100065# parse.*Token: display message of exception in non-product version --- unotools/source/i18n/charclass.cxx | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'unotools/source/i18n/charclass.cxx') diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx index 7bfa1b792689..883f6b3f673f 100644 --- a/unotools/source/i18n/charclass.cxx +++ b/unotools/source/i18n/charclass.cxx @@ -2,9 +2,9 @@ * * $RCSfile: charclass.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: er $ $Date: 2001-07-05 14:57:53 $ + * last change: $Author: er $ $Date: 2002-08-05 16:27:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -558,9 +558,13 @@ sal_Int32 CharClass::getStringType( const String& rStr, xub_StrLen nPos, xub_Str else return ParseResult(); } - catch ( Exception& ) + catch ( Exception& e ) { - DBG_ERRORFILE( "parseAnyToken: Exception caught!" ); +#ifndef PRODUCT + ByteString aMsg( "parseAnyToken: Exception caught\n" ); + aMsg += ByteString( String( e.Message ), RTL_TEXTENCODING_UTF8 ); + DBG_ERRORFILE( aMsg.GetBuffer() ); +#endif return ParseResult(); } } @@ -584,9 +588,13 @@ sal_Int32 CharClass::getStringType( const String& rStr, xub_StrLen nPos, xub_Str else return ParseResult(); } - catch ( Exception& ) + catch ( Exception& e ) { - DBG_ERRORFILE( "parsePredefinedToken: Exception caught!" ); +#ifndef PRODUCT + ByteString aMsg( "parsePredefinedToken: Exception caught\n" ); + aMsg += ByteString( String( e.Message ), RTL_TEXTENCODING_UTF8 ); + DBG_ERRORFILE( aMsg.GetBuffer() ); +#endif return ParseResult(); } } -- cgit v1.2.3