This method of the Win32Exception class retrieves the error code associated with the Win32Exception object.
public int getErrorCode();
Returns the error code associated with the Win32Exception object.