LOTUSSCRIPT LANGUAGE
Dim myClass As JavaClass
Dim myError As JavaError
On Error GoTo Catch
Set mySession = new JavaSession()
Set myClass = mySession.GetClass("Invalid")
MessageBox myError.errormsg,, "Error"
mySession.ClearJavaError
Resume done