ErrorString Method

Public Function ErrorString(errorcode As EthError) As String

Summary

This method translates an error code into a string which briefly describes the error. It is not necessary to have a connection to the ETH32 device in order to use this method.

Parameters

  • errorcode - The error code to translate into a string. This parameter is a EthError enumerator type. Possible error codes are listed in the Error Codes section.

Return Value

This method returns a string, which provides a brief description of the given error code.

Example
Private Sub example()
    
    ' Set up error handling for this routine
    On Error GoTo myerror
    
    Set dev = New Eth32
    
    ' .... Your code that establishes a connection here

	' .... More of your code that performs operations on the device or other things.
	
    Exit Sub
myerror:
    MsgBox "ETH32 error: " & dev.ErrorString(Err.Number)
End Sub
        
See Also

Error Handling Section