( model: IModelService, feature: QueryFeature, key: string | null = null, errorDescription?: string, )
| 163 | }; |
| 164 | |
| 165 | export const valideteQueryFeature = ( |
| 166 | model: IModelService, |
| 167 | feature: QueryFeature, |
| 168 | key: string | null = null, |
| 169 | errorDescription?: string, |
| 170 | ) => { |
| 171 | const errorDetail = errorDescription ? ` (${errorDescription})` : ""; |
| 172 | |
| 173 | if (isQueryFeatureEnabled(model, feature, key) === false) { |
| 174 | throw new ApiError( |
| 175 | `[ERR-1] Unsupported query feature${errorDetail}: ${feature.toString()} [${key}]`, |
| 176 | ); |
| 177 | } |
| 178 | }; |
no test coverage detected