required/cws fwk103 : Additional logging mechanics while setting error.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

required/cws fwk103 : Additional logging mechanics while setting error.

Mikhail Voytenko


          Type: required
         Title: Additional logging mechanics while setting error.
     Posted by: [hidden email]
      Affected: all
         TaskId: i101356
<http://www.openoffice.org/issues/show_bug.cgi?id=101356>
Effective from: cws fwk103
           CWS:
<http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/fwk103>
    CWS status: new


*Summary*
--------
- void SfxObjectShell::SetError( sal_uInt32 rErr );
+ void SfxObjectShell::SetError( sal_uInt32 rErr, const ::rtl::OUString& aLogMessage );

- void SfxMedium::SetError( sal_uInt32 rErr );
+ void SfxMedium::SetError( sal_uInt32 rErr, const ::rtl::OUString& aLogMessage );


*Description*
-------------
There are some mysterious cases when a document can not be stored. The
problem
with those cases is that sometimes they are reproducible once pro year
for a
user. To allow getting more information in such cases an additional
logging mechanics is implemented.

The new methods allow to provide additional logging information while
setting the error. The suggested pattern is as following
SetError( nErr, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
OSL_LOG_PREFIX ) ) );

or

SetError( nErr, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
OSL_LOG_PREFIX "Message" ) ) );



Send feedback to [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]