]> git.basschouten.com Git - openhab-addons.git/blob
e313b4d7c28b96f39516f5e23c729a8ec40e9765
[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.neeo.internal.models;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The model representing an error response (serialize/deserialize json use only)
20  *
21  * @author Tim Roberts - Initial contribution
22  */
23 @NonNullByDefault
24 public class ErrorResponse {
25
26     /** The error */
27     @Nullable
28     private String error;
29
30     /** The message */
31     @Nullable
32     private String message;
33
34     /**
35      * Gets the error.
36      *
37      * @return the error
38      */
39     @Nullable
40     public String getError() {
41         return error;
42     }
43
44     /**
45      * Gets the message.
46      *
47      * @return the message
48      */
49     @Nullable
50     public String getMessage() {
51         return message;
52     }
53
54     @Override
55     public String toString() {
56         return "ErrorResponse [error=" + error + ", message=" + message + "]";
57     }
58 }