Type: required
         Title: Additional logging mechanics while setting error.
     Posted by: [email protected]
      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 [email protected]


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

Reply via email to