UNPKG

566 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class CannotDetermineTypeError extends Error {
4 constructor(typeName, propertyKey, parameterIndex) {
5 let errorMessage = `Cannot determine type for ${typeName}#${propertyKey} `;
6 if (parameterIndex !== undefined) {
7 errorMessage += `parameter #${parameterIndex} `;
8 }
9 errorMessage += "!";
10 super(errorMessage);
11 Object.setPrototypeOf(this, new.target.prototype);
12 }
13}
14exports.CannotDetermineTypeError = CannotDetermineTypeError;