- throw new SourceException(String.format("Invalid length constraint: <%s, %s>", c.getMin(), c.getMax()),
- ctx.getStatementSourceReference(), e);
+ throw new SourceException(ctx.getStatementSourceReference(), e, "Invalid length constraint: <%s, %s>",
+ c.getMin(), c.getMax());