Error Handling Across Class Module Boundaries (Ooops Fix) 
Author Message
 Error Handling Across Class Module Boundaries (Ooops Fix)

I'm stumped.  Here's my problem:

Access97

I've been developing common class objects to be used in applications around
the office.  Unfortunately, I'm having a terrible time with error handling.
I can't seem to trap error across class boundries.  If a module with an
error handler instanties a class and that class encounters an error, the
parent's error handler is not called.  WHY????

SCRIPT OF PARENT MODULE

Option Compare Database
Option Explicit

Function ErrorTest()
    Dim objErrorTest As New clsTest

    On Error GoTo ErrorHandler

    objErrorTest.Test

ErrorTestExit:
    Exit Function

ErrorHandler:
    MsgBox ("Error In Module")

End Function

SCRIPT OF clsTest

Option Compare Database
Option Explicit

Function Test()

    Err.Raise vbObjectError + 9999

TestExit:
    Exit Function
End Function



Sun, 04 Feb 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Error Handling Across Class Module Boundaries

2. Need enlightenment on what happens with VB errors raised across component boundaries

3. Error handling outside class modules

4. Error handling in class modules - need help

5. DLL/Class Module Error Handling Advice Needed

6. Single stepping across automation boundary

7. displaying caption across Frame or other boundary??

8. Single stepping across automation boundary

9. Passing a recordset across process boundaries

10. Passing a Picture object across Dll boundaries

11. Passing a Picture object across Dll boundaries

12. Class modules 97 - Refering to array within a custom class module

 

 
Powered by phpBB® Forum Software