]> git.basschouten.com Git - openhab-addons.git/blob
2017ca8fe4348f9bfaca25f2fd2975e1a2b2217c
[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.neohub.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link NeoHubException} is a custom checked exception for NeoHubs. It is thrown when the NeoHub encounters an
19  * error that is NOT I/O related. i.e. if the binding is able to connect to the NeoHub but the NeoHub returns unexpected
20  * results.
21  *
22  * @author Andrew Fiddian-Green - Initial contribution
23  *
24  */
25 @NonNullByDefault
26 public class NeoHubException extends Exception {
27
28     private static final long serialVersionUID = -7358712540781217363L;
29
30     public NeoHubException(String message) {
31         super(message);
32     }
33
34     public NeoHubException(String message, Throwable cause) {
35         super(message, cause);
36     }
37 }