]> git.basschouten.com Git - openhab-addons.git/blob
28a5a4aee299ad0c80306dd90a5a119ae92c332a
[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.bticinosmarther.internal.api.exception;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * Signals that a generic OAuth2 authorization issue with API gateway has occurred.
20  *
21  * @author Fabio Possieri - Initial contribution
22  */
23 @NonNullByDefault
24 public class SmartherAuthorizationException extends SmartherGatewayException {
25
26     private static final long serialVersionUID = 2608406239134276285L;
27
28     /**
29      * Constructs a {@code SmartherAuthorizationException} with the specified detail message.
30      *
31      * @param message
32      *            the error message returned from the API gateway
33      */
34     public SmartherAuthorizationException(@Nullable String message) {
35         super(message);
36     }
37
38     /**
39      * Constructs a {@code SmartherAuthorizationException} with the specified detail message and cause.
40      *
41      * @param message
42      *            the error message returned from the API gateway
43      * @param cause
44      *            the cause (a null value is permitted, and indicates that the cause is nonexistent or unknown)
45      */
46     public SmartherAuthorizationException(@Nullable String message, @Nullable Throwable cause) {
47         super(message, cause);
48     }
49 }