source: trip-planner-front/node_modules/@angular/cdk/esm2015/tree/tree-errors.js@ 84d0fbb

Last change on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 4.1 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8/**
9 * Returns an error to be thrown when there is no usable data.
10 * @docs-private
11 */
12export function getTreeNoValidDataSourceError() {
13 return Error(`A valid data source must be provided.`);
14}
15/**
16 * Returns an error to be thrown when there are multiple nodes that are missing a when function.
17 * @docs-private
18 */
19export function getTreeMultipleDefaultNodeDefsError() {
20 return Error(`There can only be one default row without a when predicate function.`);
21}
22/**
23 * Returns an error to be thrown when there are no matching node defs for a particular set of data.
24 * @docs-private
25 */
26export function getTreeMissingMatchingNodeDefError() {
27 return Error(`Could not find a matching node definition for the provided node data.`);
28}
29/**
30 * Returns an error to be thrown when there are tree control.
31 * @docs-private
32 */
33export function getTreeControlMissingError() {
34 return Error(`Could not find a tree control for the tree.`);
35}
36/**
37 * Returns an error to be thrown when tree control did not implement functions for flat/nested node.
38 * @docs-private
39 */
40export function getTreeControlFunctionsMissingError() {
41 return Error(`Could not find functions for nested/flat tree in tree control.`);
42}
43//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1lcnJvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY2RrL3RyZWUvdHJlZS1lcnJvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUg7OztHQUdHO0FBQ0gsTUFBTSxVQUFVLDZCQUE2QjtJQUMzQyxPQUFPLEtBQUssQ0FBQyx1Q0FBdUMsQ0FBQyxDQUFDO0FBQ3hELENBQUM7QUFFRDs7O0dBR0c7QUFD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