UNPKG

@sap-cloud-sdk/core

Version:
8 lines 686 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.throwErrorWhenReturnTypeIsUnionType = void 0; function throwErrorWhenReturnTypeIsUnionType(data, functionActionName) { throw new Error("Failed to build an entity from the response of the function import or action import: ".concat(functionActionName, ", because the entity type of the return type is shared by multiple entity sets. Please use 'executeRaw' instead of 'execute' to get the raw response. Original response body: ").concat(JSON.stringify(data), ".")); } exports.throwErrorWhenReturnTypeIsUnionType = throwErrorWhenReturnTypeIsUnionType; //# sourceMappingURL=response-transformer.js.map