Disconnect InferenceException from SourceException
[yangtools.git] / model / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / meta / StatementSourceException.java
index 324d16858ab0635b3c216a6aa0c43c4eeb1da121..f3912f23b090fd244e8530182b6bca9c357f6c0c 100644 (file)
@@ -42,6 +42,11 @@ public class StatementSourceException extends RuntimeException {
         this(sourceRef, format.formatted(args));
     }
 
+    public StatementSourceException(final StatementSourceReference sourceRef, final Throwable cause,
+            final String format, final Object... args) {
+        this(sourceRef, format.formatted(args), cause);
+    }
+
     private static String createMessage(final StatementSourceReference sourceRef, final String message) {
         return requireNonNull(message) + " [at " + requireNonNull(sourceRef) + ']';
     }