In general: always chain exceptions: throw new ParquetEncodingException("UTF-8 not supported.", e);
But in that case this will not happen as UTF-8 is always supported. getBytes(BytesUtils.UTF8) instead would not force you to catch the exception.