]> git.basschouten.com Git - openhab-addons.git/blob
ce84cc4ae730a042119d9f5daaef47197703ea53
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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 /**
16  * Error events from a connector.
17  *
18  * @author M. Volaart - Initial contribution
19  * @author Hilbrand Bouwkamp - Reduced number of event to only errors
20  */
21 public enum DSMRConnectorErrorEvent {
22     DONT_EXISTS,
23     IN_USE,
24     INTERNAL_ERROR,
25     NOT_COMPATIBLE,
26     READ_ERROR;
27
28     /**
29      * @return the event details
30      */
31     public String getEventDetails() {
32         return "@text/error.connector." + name().toLowerCase();
33     }
34 }