https://github.com/angular/angular
Raw File
Tip revision: 096fdd0f59541afab5d66518ce605734efa71d82 authored by Dylan Hunn on 09 August 2023, 20:56:01 UTC
release: cut the v16.2.0 release
Tip revision: 096fdd0
invalid_pipe_argument_error.ts
/**
 * @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
 */

import {Type, ɵRuntimeError as RuntimeError, ɵstringify as stringify} from '@angular/core';

import {RuntimeErrorCode} from '../errors';

export function invalidPipeArgumentError(type: Type<any>, value: Object) {
  return new RuntimeError(
      RuntimeErrorCode.INVALID_PIPE_ARGUMENT,
      ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${stringify(type)}'`);
}
back to top