@@ -0,0 +1,1701 @@
+/*%0A * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others.  All rights reserved.%0A *%0A * This program and the accompanying materials are made available under the%0A * terms of the Eclipse Public License v1.0 which accompanies this distribution,%0A * and is available at http://www.eclipse.org/legal/epl-v10.html%0A */%0Apackage org.opendaylight.yangtools.yang.common;%0A%0Aimport com.google.common.annotations.Beta;%0Aimport java.util.Optional;%0Aimport org.eclipse.jdt.annotation.NonNull;%0Aimport org.opendaylight.yangtools.yang.common.RpcError.ErrorSeverity;%0Aimport org.opendaylight.yangtools.yang.common.RpcError.ErrorType;%0A%0A/**%0A * An error condition raised as a consequence of a YANG-defined contract. This interface should not be directly%0A * implemented, but rather should be attached to a well-defined Exception class.%0A *%0A * @author Robert Varga%0A */%0A@Beta%0Apublic interface YangError %7B%0A    /**%0A     * Returns the conceptual layer at which the error occurred.%0A     *%0A     * @return an %7B@link ErrorType%7D enum.%0A     */%0A    @NonNull ErrorType getErrorType();%0A%0A    /**%0A     * Returns the error severity, as determined by the application reporting the error.%0A     *%0A     * @return an %7B@link ErrorSeverity%7D enum.%0A     */%0A    @NonNull ErrorSeverity getSeverity();%0A%0A    /**%0A     * Returns the value of the argument of YANG %3Ccode%3Eerror-app-tag%3C/code%3E keyword.%0A     *%0A     * @return string with the application tag, or empty if it was not provided.%0A     */%0A    Optional%3CString%3E getErrorAppTag();%0A%0A    /**%0A     * Returns the value of the argument of YANG %3Ccode%3Eerror-message%3C/code%3E keyword.%0A     *%0A     * @return string with the error message, or empty if it was not provided.%0A     */%0A    Optional%3CString%3E getErrorMessage();%0A%7D%0A

Add YangError interface