@aws-amplify/core
Version:
Core category of aws-amplify
24 lines (21 loc) • 811 B
JavaScript
import { AmplifyErrorCode } from '../types/errors.mjs';
import { createAssertionFunction } from './createAssertionFunction.mjs';
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
const amplifyErrorMap = {
[ ]: {
message: 'Endpoint ID was not found and was unable to be created.',
},
[ ]: {
message: 'Function not supported on current platform.',
},
[ ]: {
message: 'An unknown error occurred.',
},
[ ]: {
message: 'A network error has occurred.',
},
};
const assert = createAssertionFunction(amplifyErrorMap);
export { assert };
//# sourceMappingURL=errorHelpers.mjs.map