UNPKG

ipsos-components

Version:

Material Design components for Angular

50 lines (44 loc) 1.58 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Returns an error to be thrown when attempting to find an unexisting column. * @param id Id whose lookup failed. * @docs-private */ export function getTableUnknownColumnError(id: string) { return Error(`Could not find column with id "${id}".`); } /** * Returns an error to be thrown when two column definitions have the same name. * @docs-private */ export function getTableDuplicateColumnNameError(name: string) { return Error(`Duplicate column definition name provided: "${name}".`); } /** * Returns an error to be thrown when there are multiple rows that are missing a when function. * @docs-private */ export function getTableMultipleDefaultRowDefsError() { return Error(`There can only be one default row without a when predicate function.`); } /** * Returns an error to be thrown when there are no matching row defs for a particular set of data. * @docs-private */ export function getTableMissingMatchingRowDefError() { return Error(`Could not find a matching row definition for the provided row data.`); } /** * Returns an error to be thrown when there is no row definitions present in the content. * @docs-private */ export function getTableMissingRowDefsError() { return Error('Missing definitions for header and row, ' + 'cannot determine which columns should be rendered.'); }