2 * Copyright (c) 2015 Cisco Systems, Inc. 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.yangtools.yang.data.impl.leafref;
10 public class LeafRefDataValidationFailedException extends Exception {
12 private static final long serialVersionUID = 1L;
13 private int errorsCount = 1;
15 public LeafRefDataValidationFailedException(String message) {
19 public LeafRefDataValidationFailedException(String message, int errorsCount) {
21 this.errorsCount = errorsCount;
24 public LeafRefDataValidationFailedException(String message,
25 final Throwable cause) {
26 super(message, cause);
29 public int getValidationsErrorsCount() {