summaryrefslogtreecommitdiff
path: root/unotools/source/i18n/charclass.cxx
diff options
context:
space:
mode:
authorEike Rathke <er@openoffice.org>2002-08-05 15:27:16 +0000
committerEike Rathke <er@openoffice.org>2002-08-05 15:27:16 +0000
commitd6982a8126b93122c26741a0ec087a599f8a645f (patch)
treeb677ccc59e734e104f0e2bb3a09764c7b4e03fb0 /unotools/source/i18n/charclass.cxx
parent8521f1c8f4985bd13af2de42c53b399d30b2c2af (diff)
#100065# parse.*Token: display message of exception in non-product version
Diffstat (limited to 'unotools/source/i18n/charclass.cxx')
-rw-r--r--unotools/source/i18n/charclass.cxx20
1 files changed, 14 insertions, 6 deletions
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();
}
}