]> git.basschouten.com Git - openhab-addons.git/blob
e236eb62e08a86c5fa410d54c9f8354b472a6630
[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.pushsafer.internal.connection;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The {@link PushsaferCommunicationException} is a configuration exception for the connections to Pushsafer Messages
20  * API.
21  *
22  * @author Kevin Siml - Initial contribution, forked from Christoph Weitkamp
23  */
24 @NonNullByDefault
25 public class PushsaferCommunicationException extends RuntimeException {
26
27     private static final long serialVersionUID = 1L;
28
29     /**
30      * Constructs a new exception with null as its detail message.
31      */
32     public PushsaferCommunicationException() {
33         super();
34     }
35
36     /**
37      * Constructs a new exception with the specified detail message.
38      *
39      * @param message Detail message
40      */
41     public PushsaferCommunicationException(@Nullable String message) {
42         super(message);
43     }
44
45     /**
46      * Constructs a new exception with the specified cause.
47      *
48      * @param cause The cause
49      */
50     public PushsaferCommunicationException(@Nullable Throwable cause) {
51         super(cause);
52     }
53
54     /**
55      * Constructs a new exception with the specified detail message and cause.
56      *
57      * @param message Detail message
58      * @param cause The cause
59      */
60     public PushsaferCommunicationException(@Nullable String message, @Nullable Throwable cause) {
61         super(message, cause);
62     }
63 }