Including error class name in serialization