Categorize errors and improve PrestoException message