static string ErrorString(EthError errorcode)
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.
This method returns a string, which provides a brief description of the given error code.
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.
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)); }
Error Handling Section