All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.usb4java.javax.DeviceNotFoundException Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy