I will move try catch to the global of the switch statement , and return null in case NumberFormatException or ParquetEncodingException and keep throwing the SerDeException.