URL
https://opencores.org/ocsvn/usb_fpga_1_2/usb_fpga_1_2/trunk
[/] [usb_fpga_1_2/] [trunk/] [java/] [ztex/] [UsbException.java] - Diff between revs 2 and 3
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 3 |
Line 17... |
Line 17... |
!*/
|
!*/
|
|
|
package ztex;
|
package ztex;
|
|
|
import ch.ntb.usb.*;
|
import ch.ntb.usb.*;
|
|
/** * Signals an USB error. */
|
public class UsbException extends Exception {
|
public class UsbException extends Exception {
|
|
/**
|
|
* Constructs an instance from the given error message.
|
|
* @param msg The error message.
|
|
*/
|
public UsbException(String msg) {
|
public UsbException(String msg) {
|
super( msg );
|
super( msg );
|
}
|
}
|
|
|
|
/**
|
|
* Constructs an instance from the given device and error message.
|
|
* @param dev The device.
|
|
* @param msg The error message.
|
|
*/
|
public UsbException(Usb_Device dev, String msg) {
|
public UsbException(Usb_Device dev, String msg) {
|
super( "bus=" + dev.getBus().getDirname() + " device=" + dev.getFilename() + ": " + msg );
|
super( "bus=" + dev.getBus().getDirname() + " device=" + dev.getFilename() + ": " + msg );
|
}
|
}
|
}
|
}
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.