This should make the errors easier to move around, e.g. pickling them and sending them to a remote process.