On Thu, 22 Dec 2005, Elliotte Harold wrote:

>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?

Since you're getting the UsbServices, not a UsbDevice, the UsbException 
would relate to a problem creating the UsbServices implementation, not a 
device-specific problem.  The most common problem (apparently, from the 
many complaints) is a completely missing implementation, but the 
implementation can also throw a UsbException if it encounters fatal 
problem(s) also.

>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"

Thanks, fixed.


-- 
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: 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