presto-hive/src/main/java/io/prestosql/plugin/hive/HiveReadOnlyException.java/HiveReadOnlyException/composeMessage
class HiveReadOnlyException:    private static String composeMessage(SchemaTableName tableName, Optional<String> partition)
    {
        return partition.isPresent()
                ? format("Table '%s' partition '%s' is read-only", tableName, partition.get())
                : format("Table '%s' is read-only", tableName);
    }