presto-hive/src/main/java/io/prestosql/plugin/hive/avro/PrestoAvroSerDe.java/PrestoAvroSerDe/determineSchemaOrReturnErrorSchema
class PrestoAvroSerDe:    @Override
    public Schema determineSchemaOrReturnErrorSchema(Configuration conf, Properties props)
    {
        // AvroSerDe does not propagate initialization exceptions. Instead, it stores just an exception's message in
        // this.configErrors (see https://issues.apache.org/jira/browse/HIVE-7868). In Presto, such behavior is not
        // at all useful, as silenced exception usually carries important information which may be otherwise unavailable.
        try {
            return AvroSerdeUtils.determineSchemaOrThrowException(conf, props);
        }
        catch (IOException | AvroSerdeException e) {
            throw new RuntimeException(e);
        }
    }