]> git.basschouten.com Git - openhab-addons.git/blob
174269dc12a7be110b8b71b3a45c0de692a6eb1b
[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.silvercrestwifisocket.internal.exceptions;
14
15 /**
16  * Exception throwed when one Mac address is not valid.
17  *
18  * @author Jaime Vaz - Initial contribution
19  *
20  */
21 public class MacAddressNotValidException extends Exception {
22
23     private static final long serialVersionUID = 6131138252323778017L;
24     private final String macAddress;
25
26     /**
27      * Default constructor.
28      *
29      * @param message the error message
30      * @param macAddress the wrong mac address.
31      */
32     public MacAddressNotValidException(final String message, final String macAddress) {
33         super(message);
34         this.macAddress = macAddress;
35     }
36
37     // SETTERS AND GETTERS
38
39     public String getMacAddress() {
40         return this.macAddress;
41     }
42 }