2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.silvercrestwifisocket.internal.exceptions;
16 * Exception throwed when one Mac address is not valid.
18 * @author Jaime Vaz - Initial contribution
21 public class MacAddressNotValidException extends Exception {
23 private static final long serialVersionUID = 6131138252323778017L;
24 private final String macAddress;
27 * Default constructor.
29 * @param message the error message
30 * @param macAddress the wrong mac address.
32 public MacAddressNotValidException(final String message, final String macAddress) {
34 this.macAddress = macAddress;
37 // SETTERS AND GETTERS
39 public String getMacAddress() {
40 return this.macAddress;