wrap hermes network exceptions