When I setup in LotusScript an own error handling I get information like error code and error text. This works fine. But in in some cases like error code 1024 or 4005 I get only the simple error text ‘User-defined error’. Unfortunately not the concrete reason for the error. See following samples.
- Sample
Dim l As Long
l = Clng(“a”)
own error handling is running: error code 13, error text ‘Type mismatch’
own error handling is not running also: error text ‘Type mismatch’
That is fine.
- Sample
Dim v As Variant
v = Evaluate(Cvar(“@Xrue”))
own error handling is running: error code 1024, error text ‘User-defined error’
own error handling is not running but: error text ‘Operation failed’
That is not fine. I want to get in this case also the concrete error text ‘Operation failed’ not the global error text ‘User-defined error’
- Sample
Dim session As NotesSession
Dim db As NotesDatabase
Dim coll As NotesDocumentCollection
Set session = New NotesSession
Set db = session.CurrentDatabase
Set coll = db.FTSearch(“X[F1] CONTAINS A”, 0)
own error handling is running: error code 4005 , error text ‘User-defined error’
own error handling is not running but: error text ‘Notes error: Query is not understandable (X[F1] CONTAINS A)’
That is not fine. I want to get in this case also the concrete error text ‘Notes error: Query is not understandable (X[F1] CONTAINS A)’ not the global error text ‘User-defined error’
The error codes 1024 and 4005, respectively, above are unfortunately concretely. Why Notes cannot provide the concrete error text in this case also like in the 1. sample. In addition, the error code 4005 can have a lot of reasons, in example ‘Notes error: Not enough workspace for full-text indexing or query…’. The same is for the other error codes like 4000, 4001…
How can I get the the concrete error text also in this case?
Excuse me for my bad English, I am a German user.
Thank you in advance for any answer.