Convert exceptions from internal to plain struct