]> git.basschouten.com Git - openhab-addons.git/blob
2e808dfd1bbcf6e582dbdc48c9403559fb973138
[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.paradoxalarm.internal.exceptions;
14
15 /**
16  * The {@link ParadoxRuntimeException} Used for Paradox binding specific runtime exceptions.
17  *
18  * @author Konstantin Polihronov - Initial contribution
19  */
20 public class ParadoxRuntimeException extends RuntimeException {
21
22     private static final long serialVersionUID = -4656474289606169766L;
23
24     public ParadoxRuntimeException(String message) {
25         super(message);
26     }
27
28     public ParadoxRuntimeException() {
29         super();
30     }
31
32     public ParadoxRuntimeException(String message, Throwable cause, boolean enableSuppression,
33             boolean writableStackTrace) {
34         super(message, cause, enableSuppression, writableStackTrace);
35     }
36
37     public ParadoxRuntimeException(String message, Throwable cause) {
38         super(message, cause);
39     }
40
41     public ParadoxRuntimeException(Throwable cause) {
42         this("This is a Paradox Binding wrapper of RuntimeException. For detailed error message, see the original exception. Short message: "
43                 + cause.getMessage(), cause);
44     }
45 }