Protect error deserialization