]> git.basschouten.com Git - openhab-addons.git/blob
14d9710732c9e66a21ce55f29f54dd841ea365c7
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.systeminfo.internal.model;
14
15 import java.io.IOException;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
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.
22  *
23  * @author Svilen Valkanov - Initial contribution
24  * @author Wouter Born - Add null annotations
25  */
26 @NonNullByDefault
27 public class DeviceNotFoundException extends IOException {
28     private static final long serialVersionUID = -707507777792259512L;
29
30     /**
31      * Constructs a {@code DeviceNotFoundException} with {@code null}
32      * as its error detail message.
33      */
34     public DeviceNotFoundException() {
35         super();
36     }
37
38     /**
39      * Constructs a {@code DeviceNotFoundException} with the specified detail message.
40      *
41      *
42      * @param message
43      *            The detail message (which is saved for later retrieval
44      *            by the {@link #getMessage()} method)
45      */
46     public DeviceNotFoundException(String message) {
47         super(message);
48     }
49
50     /**
51      * Constructs a {@code DeviceNotFoundException} with the specified detail message
52      * and cause.
53      *
54      * <p>
55      * Note that the detail message associated with {@code cause} is
56      * <i>not</i> automatically incorporated into this exception's detail
57      * message.
58      *
59      * @param message
60      *            The detail message (which is saved for later retrieval
61      *            by the {@link #getMessage()} method)
62      *
63      * @param cause
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.)
67      *
68      */
69     public DeviceNotFoundException(String message, Throwable cause) {
70         super(message, cause);
71     }
72 }