]> git.basschouten.com Git - openhab-addons.git/blob
ccece2f296b7ffaa3da75ea7514b9006aaad8dc8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.wlanthermo.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.ChannelUID;
17
18 /**
19  * The {@link WlanThermoUnknownChannelException} is thrown if a channel or trigger is unknown
20  *
21  * @author Christian Schlipp - Initial contribution
22  */
23 @NonNullByDefault
24 public class WlanThermoUnknownChannelException extends WlanThermoException {
25
26     static final long serialVersionUID = 1L;
27     public static final String UNKNOWN_CHANNEL_EXCEPTION = "Channel or Trigger unknown!";
28
29     public WlanThermoUnknownChannelException() {
30         super(UNKNOWN_CHANNEL_EXCEPTION);
31     }
32
33     public WlanThermoUnknownChannelException(ChannelUID channelUID) {
34         super(UNKNOWN_CHANNEL_EXCEPTION + "ChannelUID: " + channelUID.toString());
35     }
36
37     public WlanThermoUnknownChannelException(ChannelUID channelUID, Throwable cause) {
38         super(UNKNOWN_CHANNEL_EXCEPTION + "ChannelUID: " + channelUID.toString(), cause);
39     }
40 }