One of the known todos is to create more meaningful USB-specific UsbExceptions. While talking to a coworker, we discussed what to do about platform-specific errors, i.e. those that aren't USB-specific. We came up with PlatformException extends UsbException { public Exception getException(); public int getError(); }
This allows the platform to pass up platform-specifc error information, just in case the application can interpret it (which would make the application at least partially platform-specific), but doesn't clutter up the main UsbException. Any comments? If not, I'll add it into the API. Also, does anyone have any suggestions for other UsbException extentions? Some I can think of are: NoBandwidthException StalledException ...? One final issue: I was using javax.usb.NotActiveException for certain methods. However, there is also a java.io.NotActiveException. I had changed to use that Exception, but it may be better to use a javax.usb.NotActiveException...? -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel