Better error class parsing for reporting to HB