]> git.basschouten.com Git - openhab-addons.git/blob
9d85330bb9a9ac61f752155f7c12630c1e80682c
[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.dsmr.internal.device.connector;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Error events from a connector.
19  *
20  * @author M. Volaart - Initial contribution
21  * @author Hilbrand Bouwkamp - Reduced number of event to only errors
22  */
23 @NonNullByDefault
24 public enum DSMRConnectorErrorEvent {
25     DONT_EXISTS,
26     IN_USE,
27     INTERNAL_ERROR,
28     NOT_COMPATIBLE,
29     READ_ERROR;
30
31     /**
32      * @return the event details
33      */
34     public String getEventDetails() {
35         return "@text/error.connector." + name().toLowerCase();
36     }
37 }