2 * Copyright (c) 2024 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.server.api;
10 import static java.util.Objects.requireNonNull;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 * An {@code error-path} element in a {@link ServerError}.
17 * @param databind the {@link DatabindContext} to which this path is bound
18 * @param path the {@link YangInstanceIdentifier}, {@link YangInstanceIdentifier#empty()} denotes the data root
20 public record ServerErrorPath(DatabindContext databind, YangInstanceIdentifier path) {
21 public ServerErrorPath {
22 requireNonNull(databind);