Handle protocol errors without throwing exceptions