map From Discovery Event Details Data Error
Maps an error response to a DiscoveryEvent object.
Creates a DiscoveryEvent containing only the provided error information.
Return
A DiscoveryEvent object with the error data.
Parameters
error
The error response from the API.