Possible that a failing constructor sets its object to nothing in LotusScript?

I have written a user defined class in LotusScript.

Now in the constructor of this class is an error handler which will be executed when an error occures during constructor execution. Now, is it possible that if in an error case in the constructor it can set its whole object to nothing?

What I want is that when define an object from this class, I can test the object if it is nothing or not to be sure the construction was successful.

Here is what I mean:

Sub New

On Error GoTo ErrorHandler

'Some code which might cause an error

Terminate:

Exit Sub

ErrorHandler:

'Here is where I want to set the whole object, which this constructor should create, to nothing.

Resume Terminate

End Sub

Now unfortunately I see no way in achiving my goal that a failing constructor sets the whole object to nothing in the calling code.

Does anybody have an idea?

Subject: Please don’t cross-post

Pick one forum, the one of the Notes version you are using.

http://www-10.lotus.com/ldd/nd6forum.nsf/d6091795dfaa5b1185256a7a0048a2d0/b893930d16d55fc385257b7400459ea3?OpenDocument