2 * Copyright (c) 2013 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/eplv10.html
8 package org.opendaylight.yangtools.yang.parser.util;
10 public class YangParseException extends RuntimeException {
11 private static final long serialVersionUID = 1239548963471793178L;
13 public YangParseException(final String errorMsg) {
17 public YangParseException(final String errorMsg, final Exception exception) {
18 super(errorMsg, exception);
21 public YangParseException(final String moduleName, final int line,
22 final String errorMsg) {
23 super("Error in module '" + moduleName + "' at line " + line + ": "
27 public YangParseException(final String moduleName, final int line,
28 final String errorMsg, final Exception exception) {
29 super("Error in module '" + moduleName + "' at line " + line + ": "
30 + errorMsg, exception);