Only send relevant data to the error constructor