< Day Day Up > |
An instance of the ErrObject class is returned by the Err function of the Information module. The ErrObject class represents the last exception caught by an On Error statement or by a Try statement. Public Sub Clear() The Clear subroutine clears all information about the last exception. Public Property Description() As String The Description property provides a text description of the last exception. If no description was supplied for the last exception, the result (if any) of the ErrorToString function will be returned. Public ReadOnly Property Erl() As Integer The Erl property returns the number of the last numeric label before an exception occurred.
Public Function GetException() As System.Exception The GetException function returns the underlying System.Exception instance of the last exception. Public Property HelpContext() As Integer The HelpContext property provides the help context ID of the last exception. Public Property HelpFile() As String The HelpFile property provides the help file of the last exception. Public ReadOnly Property LastDllError() As Integer The LastDllError property returns the Win32 error code, if any, set by the last call to a Declare statement. Public Property Number() As Integer The Number property provides the error number of the last exception.
Public Sub Raise(ByVal Number As Integer, _ Optional ByVal Source As Object = Nothing, _ Optional ByVal Description As Object = Nothing, _ Optional ByVal HelpFile As Object = Nothing, _ Optional ByVal HelpContext As Object = Nothing) The Raise subroutine throws a new exception.
Public Property Source() As String The Source property provides the name of the object or application that caused the last exception. |
< Day Day Up > |