src/sap.ui.core/src/sap/ui/model/odata/v4/ODataMetaModel.js
function reportAndThrowError(oMetaModel, sMessage, sDetails) {
		var oError = new Error(sDetails + ": " + sMessage);

		oMetaModel.oModel.reportError(sMessage, sODataMetaModel, oError);
		throw oError;
	}
function reportAndThrowError(oMetaModel, sMessage, sDetails) {
		var oError = new Error(sDetails + ": " + sMessage);

		oMetaModel.oModel.reportError(sMessage, sODataMetaModel, oError);
		throw oError;
	}
function reportAndThrowError ( oMetaModel , sMessage , sDetails ) { var oError = new Error ( sDetails + ": " + sMessage ) ; oMetaModel . oModel . reportError ( sMessage , sODataMetaModel , oError ) ; throw oError ; }
Reports an error with the given message and details and throws it.

@param {sap.ui.model.odata.v4.ODataMetaModel} oMetaModel
The OData metadata model
@param {string} sMessage
Error message
@param {string} sDetails
Error details
@throws {Error}
Reports an error with the given message and details and throws it .