Code:
Private Function F1() As String
On Error GoTo errHandler
Open "c:\pfms.txt" For Input As #1
exitHere:
Exit Function
errHandler:
MsgBox "Error " & Err.Number
Select Case Err
Case 53 ' unrecoverable error
Err.Raise 1, "F1"
Exit Function
End Select
End Function
Is it a good programming practice to notify the function caller that an error has occurred in the called function by using the err.raise method?