X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Fspi%2Fmeta%2FInvalidSubstatementException.java;h=3412ee7175233ee63f2695b5d0ba1869702122ef;hb=04fa25a4fe8957f6492618aa9a1e9a4f9af39df4;hp=b4d258abd616beecb328b2de5bb40b7643c05800;hpb=42a5ab126bea6cdbc1eb3693044a024ed468ac4e;p=yangtools.git diff --git a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/InvalidSubstatementException.java b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/InvalidSubstatementException.java index b4d258abd6..3412ee7175 100644 --- a/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/InvalidSubstatementException.java +++ b/yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/spi/meta/InvalidSubstatementException.java @@ -12,16 +12,22 @@ import org.opendaylight.yangtools.yang.parser.spi.source.SourceException; import org.opendaylight.yangtools.yang.parser.spi.source.StatementSourceReference; /** - * * Thrown when there was Invalid element in yang file - * */ public class InvalidSubstatementException extends SourceException { - public InvalidSubstatementException(@Nonnull String message, @Nonnull StatementSourceReference source, Throwable cause) { + private static final long serialVersionUID = 1L; + + public InvalidSubstatementException(@Nonnull final String message, @Nonnull final StatementSourceReference source, + final Throwable cause) { super(message, source, cause); } - public InvalidSubstatementException(@Nonnull String message, @Nonnull StatementSourceReference source) { + public InvalidSubstatementException(@Nonnull final String message, @Nonnull final StatementSourceReference source) { super(message, source); } + + public InvalidSubstatementException(@Nonnull final StatementSourceReference source, @Nonnull final String format, + final Object... args) { + this(String.format(format, args), source); + } }