Added generation of Transfer Objects from Type Definitions.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / main / java / org / opendaylight / controller / yang / model / parser / impl / YangValidationException.java
diff --git a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/main/java/org/opendaylight/controller/yang/model/parser/impl/YangValidationException.java b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/main/java/org/opendaylight/controller/yang/model/parser/impl/YangValidationException.java
new file mode 100644 (file)
index 0000000..43d3940
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.controller.yang.model.parser.impl;
+
+/**
+ * Unchecked exception thrown if yang definition is not valid according to
+ * {@link YangModelValidationListener}
+ */
+public class YangValidationException extends RuntimeException {
+
+    private static final long serialVersionUID = 7414330400390825381L;
+
+    public YangValidationException(String message, Throwable cause) {
+        super(message, cause);
+    }
+
+    public YangValidationException(String message) {
+        super(message);
+    }
+
+}
\ No newline at end of file