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);
+ }
}