/** * Creates a new {@link VndError} with the given logref, a message as well as some {@link Link}s. * * @param logref must not be {@literal null} or empty. * @param message must not be {@literal null} or empty. * @param links */ public VndError(String logref, String message, Link... links) { Assert.hasText(logref, "Logref must not be null or empty!"); Assert.hasText(message, "Message must not be null or empty!"); this.logref = logref; this.message = message; this.add(Arrays.asList(links)); }
/** * Creates a new {@link VndError} with the given logref, a message as well as some {@link Link}s. * * @param logref must not be {@literal null} or empty. * @param message must not be {@literal null} or empty. * @param links */ public VndError(String logref, String message, Link... links) { Assert.hasText(logref, "Logref must not be null or empty!"); Assert.hasText(message, "Message must not be null or empty!"); this.logref = logref; this.message = message; this.add(Arrays.asList(links)); }