gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
229 stars 71 forks source link

Add better error handling if Hidapi fails #26

Closed gary-rowe closed 9 years ago

gary-rowe commented 9 years ago

User feedback from the MultiBit HD project (see Issue 673) indicates that hid4java is not handling/informing downstream callers of a failure.

gary-rowe commented 9 years ago

I opted to use an early fail fast through the init() method to ensure the library load operation occurs correctly, or throws a runtime exception in case of any problems.

Ready for review and close.

jim618 commented 9 years ago

LGTM. Closing

jim618 commented 9 years ago

oh - I cannot close it - must not be a collaborator

gary-rowe commented 9 years ago

You are now. Closing.