/* © SRSoftware 2024 */ package de.srsoftware.cal.db; import de.srsoftware.tools.Error; import java.util.Collection; import java.util.Map; public class NotFound extends Error { public NotFound(String message, Map data, Collection exceptions) { super(message, data, exceptions); } public static NotFound of(String message, Object... fills) { return new NotFound<>(message.formatted(fills), null, null); } @Override public NotFound transform() { return new NotFound<>(message(), data(), exceptions()); } }