Error serialization.