]> git.basschouten.com Git - openhab-addons.git/blob
cb8994bad4442c36d14672c49674cc288682be50
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.boschshc.internal.services.dto;
14
15 /**
16  * Generic error response of the Bosch REST API.
17  * 
18  * @author Christian Oeing - Initial contribution
19  */
20 public class JsonRestExceptionResponse extends BoschSHCServiceState {
21     public JsonRestExceptionResponse() {
22         super("JsonRestExceptionResponseEntity");
23         this.errorCode = "";
24         this.statusCode = 0;
25     }
26
27     /**
28      * The error code of the occurred Exception.
29      */
30     public String errorCode;
31
32     /**
33      * The HTTP status of the error.
34      */
35     public int statusCode;
36 }