]> git.basschouten.com Git - openhab-addons.git/blob
47c7be30e8b30135cf50eae8c43d7e576d0ecb20
[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.fmiweather.internal.client.exception;
14
15 import java.util.Arrays;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * Specialized Exception class for ExceptionReport responses from the FMI API
21  *
22  * @author Sami Salonen - Initial contribution
23  *
24  */
25 @NonNullByDefault
26 public class FMIExceptionReportException extends FMIResponseException {
27
28     private static final long serialVersionUID = -6402617339310828118L;
29
30     private FMIExceptionReportException(String message) {
31         super(message);
32     }
33
34     public FMIExceptionReportException(String exceptionCode, String[] messages) {
35         this(new StringBuilder("Exception report (").append(exceptionCode).append("): ")
36                 .append(Arrays.deepToString(messages)).toString());
37     }
38 }