2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.systeminfo.internal.model;
15 import java.io.IOException;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * {@link DeviceNotFoundException} is used to indicate that device can not be found on this hardware configuration, most
21 * probably because the device is not installed.
23 * @author Svilen Valkanov - Initial contribution
24 * @author Wouter Born - Add null annotations
27 public class DeviceNotFoundException extends IOException {
28 private static final long serialVersionUID = -707507777792259512L;
31 * Constructs a {@code DeviceNotFoundException} with {@code null}
32 * as its error detail message.
34 public DeviceNotFoundException() {
39 * Constructs a {@code DeviceNotFoundException} with the specified detail message.
43 * The detail message (which is saved for later retrieval
44 * by the {@link #getMessage()} method)
46 public DeviceNotFoundException(String message) {
51 * Constructs a {@code DeviceNotFoundException} with the specified detail message
55 * Note that the detail message associated with {@code cause} is
56 * <i>not</i> automatically incorporated into this exception's detail
60 * The detail message (which is saved for later retrieval
61 * by the {@link #getMessage()} method)
64 * The cause (which is saved for later retrieval by the
65 * {@link #getCause()} method). (A null value is permitted,
66 * and indicates that the cause is nonexistent or unknown.)
69 public DeviceNotFoundException(String message, Throwable cause) {
70 super(message, cause);