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
Subject: Java question: trying to open database object leaves error 4060
Feedback Type: Question
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Always

Hi

I have a piece of Java code in which I want to catch a certain error when trying to get a handle to a database.

Database dbTemp = s.getDatabase(oneServer, s6, false);
if (dbTemp != null) {
.... my if code...
} else {
...message that database could not be opened
}

When the code gets to the first line (where dbTemp is set) then a 4060 error(not enough access rights) is raised. But the next line (if (dbTemp != null)) is never reached because this error breaks the code. When the database does not exist then no error is raised and the code continues to the next line where the if statement checks the dbTemp object.

Is there a way in java to catch this particular error, leaves a message (messagebox) and then still continues with the next line?


Feedback number WEBB8U9CL6 created by ~Pippy Lopfoomanli on 05/13/2012

Status: Open
Comments:

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