2 * Copyright (c) 2010-2024 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.lametrictime.internal.api.local.dto;
15 import java.util.ArrayList;
16 import java.util.List;
21 * @author Gregory Moyer - Initial contribution
23 public class Failure {
24 private List<Error> errors = new ArrayList<Error>();
26 public List<Error> getErrors() {
30 public void setErrors(List<Error> errors) {
34 public Failure withErrors(List<Error> errors) {
40 public String toString() {
41 StringBuilder builder = new StringBuilder();
42 builder.append("Failure [errors=");
43 builder.append(errors);
45 return builder.toString();