Projects moved under correct parent.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-parser-impl / src / main / java / org / opendaylight / controller / yang / parser / util / YangParseException.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.yang.parser.util;
9
10 public class YangParseException extends RuntimeException {
11     private static final long serialVersionUID = 1239548963471793178L;
12
13     public YangParseException(final String errorMsg) {
14         super(errorMsg);
15     }
16
17     public YangParseException(final String errorMsg, final Exception exception) {
18         super(errorMsg, exception);
19     }
20
21     public YangParseException(final String moduleName, final int line,
22             final String errorMsg) {
23         super("Error in module '" + moduleName + "' at line " + line + ": "
24                 + errorMsg);
25     }
26
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);
31     }
32
33 }