https://github.com/angular/angular
Raw File
Tip revision: dacac7eb62c72e43106fc75af25f314f95c8e300 authored by Pawel Kozlowski on 17 August 2022, 14:47:01 UTC
release: cut the v14.1.3 release
Tip revision: dacac7e
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