@sap-cloud-sdk/odata-common
Version:
SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.
12 lines • 714 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.throwErrorWhenReturnTypeIsUnionType = throwErrorWhenReturnTypeIsUnionType;
/**
* Throws an error.
* @param data - Data.
* @param functionActionName - FunctionActionName.
*/
function throwErrorWhenReturnTypeIsUnionType(data, functionActionName) {
throw new Error(`Failed to build an entity from the response of the function import or action import: ${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: ${JSON.stringify(data)}.`);
}
//# sourceMappingURL=response-transformer.js.map