Line 1... |
Line 1... |
/*!
|
/*!
|
Java Driver API for the ZTEX Firmware Kit
|
Java host software API of ZTEX EZ-USB FX2 SDK
|
Copyright (C) 2009-2010 ZTEX e.K.
|
Copyright (C) 2009-2011 ZTEX GmbH.
|
http://www.ztex.de
|
http://www.ztex.de
|
|
|
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
it under the terms of the GNU General Public License version 3 as
|
it under the terms of the GNU General Public License version 3 as
|
published by the Free Software Foundation.
|
published by the Free Software Foundation.
|
Line 22... |
Line 22... |
|
|
/**
|
/**
|
* Thrown if a device runs with no or the wrong firmware, i.e. if the ZTEX descriptor is not found or damaged. */
|
* Thrown if a device runs with no or the wrong firmware, i.e. if the ZTEX descriptor is not found or damaged. */
|
public class InvalidFirmwareException extends Exception {
|
public class InvalidFirmwareException extends Exception {
|
/**
|
/**
|
|
* Constructs an instance from the error message.
|
|
* @param msg The error message.
|
|
*/
|
|
public InvalidFirmwareException ( String msg) {
|
|
super( msg );
|
|
}
|
|
|
|
/**
|
* Constructs an instance from the given device and error message.
|
* Constructs an instance from the given device and error message.
|
* @param ztex The device.
|
* @param ztex The device.
|
* @param msg The error message.
|
* @param msg The error message.
|
*/
|
*/
|
public InvalidFirmwareException ( Ztex1 ztex, String msg) {
|
public InvalidFirmwareException ( Ztex1 ztex, String msg) {
|
Line 71... |
Line 79... |
* @param dev The device.
|
* @param dev The device.
|
*/
|
*/
|
public InvalidFirmwareException (Usb_Device dev ) {
|
public InvalidFirmwareException (Usb_Device dev ) {
|
super( "bus=" + dev.getBus().getDirname() + " device=" + dev.getFilename() + ": Invalid Firmware" );
|
super( "bus=" + dev.getBus().getDirname() + " device=" + dev.getFilename() + ": Invalid Firmware" );
|
}
|
}
|
|
|
|
|
}
|
}
|
|
|
No newline at end of file
|
No newline at end of file
|