class NumberUtils {

  private static void throwOverflowException(final Number number, final Class<?> targetClass) {
    throw new IllegalArgumentException(
        "Could not convert number [" + number + "] of type [" + number.getClass().getName()
            + "] to target class [" + targetClass.getName() + "]: overflow");
  }

}