2 * Copyright (c) 2010-2020 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.gardena.internal.model;
15 import java.util.ArrayList;
16 import java.util.List;
18 import org.apache.commons.lang.builder.ToStringBuilder;
19 import org.apache.commons.lang.builder.ToStringStyle;
22 * Represents a List of Gardena errors.
24 * @author Gerhard Riegler - Initial contribution
28 private List<Error> errors = new ArrayList<>();
31 * Returns a list of Gardena errors.
33 public List<Error> getErrors() {
38 public String toString() {
39 ToStringBuilder tsb = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
40 for (Error error : errors) {
43 return tsb.toString();