ErrorString Method

static string ErrorString(EthError errorcode)

Summary

This method translates an error code into a string which briefly describes the error.

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.

Remarks

This is a static method, meaning that it is not called on a specific object instance, but directly on the Eth32 class. This of course means that this method can be called at any time. It is not necessary to have a connection to an ETH32 device, nor is it even necessary to have an instance of the Eth32 class.

Example
Eth32 dev = new Eth32();

try
{
	// .... Your code that establishes a connection here

	// .... More of your code that performs operations on the device or other things.
}
catch (Eth32Exception e)
{
	MessageBox.Show("ETH32 Error: " + Eth32.ErrorString(e.ErrorCode));
}
        
See Also

Error Handling Section