Creates a failed call event.
Parameters: capi - the CAPI used to call the function. The CAPI is used as the event source. Parameters: request - the request of the call to the function. Parameters: duration - the duration of the call. Parameters: exception - the exception thrown by the CAPI call.