public CannotBuildQueryException(RelNode relNode, AggregateCall aggregateCall) { super(StringUtils.nonStrictFormat("Cannot translate aggregator[%s] from rel[%s]", aggregateCall, relNode)); } }
public RE(Throwable cause, String formatText, Object... arguments) { super(StringUtils.nonStrictFormat(formatText, arguments), cause); } }
public SegmentLoadingException( Throwable cause, String formatString, Object... objs ) { super(StringUtils.nonStrictFormat(formatString, objs), cause); } }
public ISE(Throwable cause, String formatText, Object... arguments) { super(StringUtils.nonStrictFormat(formatText, arguments), cause); } }
public SegmentNotWritableException(String message, Object... messageArgs) { super(StringUtils.nonStrictFormat(message, messageArgs)); } }
public SegmentValidationException(Throwable cause, String formatText, Object... arguments) { super(StringUtils.nonStrictFormat(formatText, arguments), cause); } }
public IAE(Throwable cause, String formatText, Object... arguments) { super(StringUtils.nonStrictFormat(formatText, arguments), cause); } }
public BasicSecurityDBResourceException(Throwable t, String formatText, Object... arguments) { super(StringUtils.nonStrictFormat(formatText, arguments), t); } }
public IOE(Throwable cause, String formatText, Object... arguments) { super(StringUtils.nonStrictFormat(formatText, arguments), cause); } }
public ResourceLimitExceededException(String message, Object... arguments) { super(StringUtils.nonStrictFormat(message, arguments)); } }
public IOE(String formatText, Object... arguments) { super(StringUtils.nonStrictFormat(formatText, arguments)); }
public BasicSecurityDBResourceException(String formatText, Object... arguments) { super(StringUtils.nonStrictFormat(formatText, arguments)); }
/** * Converts String errorMsg into a Map so that it produces valid json on serialization into response. */ public static Map<String, String> jsonize(String msgFormat, Object... args) { return ImmutableMap.of("error", StringUtils.nonStrictFormat(msgFormat, args)); } }
public void trace(String message, Object... formatArgs) { if (log.isTraceEnabled()) { log.trace(StringUtils.nonStrictFormat(message, formatArgs)); } }
public void debug(String message, Object... formatArgs) { if (log.isDebugEnabled()) { log.debug(StringUtils.nonStrictFormat(message, formatArgs)); } }
public void info(String message, Object... formatArgs) { if (log.isInfoEnabled()) { log.info(StringUtils.nonStrictFormat(message, formatArgs)); } }
public void info(Throwable t, String message, Object... formatArgs) { if (log.isInfoEnabled()) { log.info(StringUtils.nonStrictFormat(message, formatArgs), t); } }
public void debug(Throwable t, String message, Object... formatArgs) { if (log.isDebugEnabled()) { log.debug(StringUtils.nonStrictFormat(message, formatArgs), t); } }
public String getURL() { if (metadata.getHostAndTlsPort() != null) { return StringUtils.nonStrictFormat("https://%s", metadata.getHostAndTlsPort()); } else { return StringUtils.nonStrictFormat("http://%s", metadata.getHostAndPort()); } }
@SuppressWarnings("MalformedFormatString") @Test public void testNonStrictFormat() { Assert.assertEquals("test%d; format", StringUtils.nonStrictFormat("test%d", "format")); Assert.assertEquals("test%s%s; format", StringUtils.nonStrictFormat("test%s%s", "format")); }