USBHostmanager.getUsbServices is declared to throw SecurityException and UsbException:

public static UsbServices getUsbServices() throws UsbException, java.lang.SecurityException

What conditions might cause a UsbException here? i.e. how would a device have to misbehave to cause this exception?

The JavaDoc for these exceptions has some typos. I think "If the is an error creating the UsbSerivces implementation" should be something like "If there is an error creating the UsbServices implementation" and in the getProperties() method "occurrs" should be "occurs"

See http://javax-usb.org/jdoc/javax/usb/UsbHostManager.html#getUsbServices()


--
Elliotte Rusty Harold  [EMAIL PROTECTED]
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to