Portlet Factory, Version 6.1.2
Logging errors
You can write the above error to the log with the logError() method on the webAppAccess object.
The logError() method takes a string and a Throwable object as shown below:
//log the error webAppAccess.logError(actionName, ex);Where actionName is the value of the bowstreet.errorhandler.ActionName attribute in the request and ex is the value of the bowstreet.errorhandler.Exception attribute in the request.
Parent topic: About error handling in web applications
Library | Support |