Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Errorhandling in Java is quite different from errorhandling in LotusScript

By the code provided it looks to me that You are trying to implement a LotusScript type of Java coding style, and that is not the correct way to go.

In Java You must CATCH errors that are thrown, and You should never have to check for null objects.

Database db = null;
try {
db = s.getDatabse(server,path);
} catch(NotesException e) {
//Error - could not get database...
// You should break out of the function and not continue with Your code...!
}

hth


Feedback response number WEBB8U9FCM created by ~Vanessa Preponelyynds on 05/13/2012

Java question: trying to open datab... (~Pippy Lopfooma... 13.May.12)
. . Errorhandling in Java is quite diff... (~Vanessa Prepon... 13.May.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS