OpenCores
URL https://opencores.org/ocsvn/usb_fpga_1_2/usb_fpga_1_2/trunk

Subversion Repositories usb_fpga_1_2

[/] [usb_fpga_1_2/] [trunk/] [java/] [ztex/] [CapabilityException.java] - Diff between revs 2 and 3

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 3
Line 16... Line 16...
   along with this program; if not, see http://www.gnu.org/licenses/.
   along with this program; if not, see http://www.gnu.org/licenses/.
!*/
!*/
 
 
package ztex;
package ztex;
 
 
 
/** * Thrown is a required capability is not available. */
public class CapabilityException extends Exception {
public class CapabilityException extends Exception {
 
/**
 
 * Constructs an instance from a givig device and capability string.
 
 * @param ztex The device.
 
 * @param cap Capability name.
 
 */
    public CapabilityException ( Ztex1 ztex, String cap) {
    public CapabilityException ( Ztex1 ztex, String cap) {
        super( "bus=" + ztex.dev().dev().getBus().getDirname() + "  device=" + ztex.dev().dev().getFilename() + ": " + cap + " not supported" );
        super( "bus=" + ztex.dev().dev().getBus().getDirname() + "  device=" + ztex.dev().dev().getFilename() + ": " + cap + " not supported" );
    }
    }
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.