org.usb4java.javax.DeviceNotFoundException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of usb4java-javax Show documentation
Show all versions of usb4java-javax Show documentation
Extension for usb4java which implements javax.usb (JSR-80).
The newest version!
/*
* Copyright (C) 2013 Klaus Reimer
* See LICENSE.md for licensing information.
*/
package org.usb4java.javax;
/**
* Thrown when a USB device was not found by id.
*
* @author Klaus Reimer ([email protected])
*/
public final class DeviceNotFoundException extends RuntimeException
{
/** Serial version UID. */
private static final long serialVersionUID = 1L;
/** The device id. */
private final DeviceId id;
/**
* Constructor.
*
* @param id
* The ID of the device which was not found.
*/
DeviceNotFoundException(final DeviceId id)
{
super("USB Device not found: " + id);
this.id = id;
}
/**
* Returns the device id.
*
* @return The device id.
*/
public DeviceId getId()
{
return this.id;
}
}