logIOErrorLoggable
The
class can be used as shown in
Loggable
Listing C-2 Example of Use of Loggable Class
package test;
import weblogic.logging.Loggable;
import weblogic.i18n.testLogger;
...
try {
// some IO
} catch (IOException ioe) {
Loggable l = testLogger.logIOErrorLoggable(ioe);
l.log();
// log the error
throw new Exception(l.getMessage());//throw new exception with
same text as logged
}
How Loggable Objects Are Used
(Throwable)—returns a Loggable object
Listing
C-2.
Internationalization Guide
C-3
Need help?
Do you have a question about the BEA WebLogic Server and is the answer not in the manual?