UNPKG

505 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class ConflictingDefaultWithNullableError extends Error {
4 constructor(typeOwnerName, defaultValue, nullable) {
5 super(`Wrong nullable option set for ${typeOwnerName}. ` +
6 `You cannot combine default value '${defaultValue}' with nullable '${nullable}'.`);
7 Object.setPrototypeOf(this, new.target.prototype);
8 }
9}
10exports.ConflictingDefaultWithNullableError = ConflictingDefaultWithNullableError;