public void reportTruncate(String original, String truncated)
{
switch(truncateHandling)
{
case WARN:
warnClient(new StringTruncationException(original, truncated));
break;
case ERROR:
throw new StringTruncationException(original, truncated);
case IGNORE:
// ignores, does nothing
break;
default:
throw new AssertionError(truncateHandling);