@datadog/mobile-react-native
Version:
A client-side React Native module to interact with Datadog
21 lines (20 loc) • 801 B
JavaScript
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
import { EventMapper } from '../../sdk/EventMappers/EventMapper';
export const generateErrorEventMapper = eventMapper => new EventMapper(eventMapper, formatRawErrorToErrorEvent, formatErrorEventToNativeError, formatRawErrorToNativeError);
const formatRawErrorToErrorEvent = (error, additionalInformation) => {
return {
...error,
...additionalInformation
};
};
const formatRawErrorToNativeError = error => {
return error;
};
const formatErrorEventToNativeError = error => {
return error;
};
//# sourceMappingURL=errorEventMapper.js.map