UNPKG

2.79 kBTypeScriptView Raw
1export declare class InvalidTypeError extends Error {
2 constructor(targetName: string, key: string, Type: unknown);
3}
4export declare class NotNumberTypeError extends Error {
5 constructor(targetName: string, key: string, enumKey: string, enumValue: string);
6}
7export declare class NotStringTypeError extends Error {
8 constructor(targetName: string, key: string, enumKey: string, enumValue: string);
9}
10/** Not All Virtual Populate Elements Error */
11export declare class NotAllVPOPElementsError extends Error {
12 constructor(name: string, key: string);
13}
14export declare class NoValidClassError extends TypeError {
15 constructor(value: unknown);
16}
17export declare class AssertionFallbackError extends Error {
18 constructor();
19}
20/** Error for when an unknown PropType is passed to an switch, gets thrown in the default case */
21export declare class InvalidPropTypeError extends Error {
22 constructor(proptype: unknown, name: string, key: string, where: string);
23}
24export declare class CannotBeSymbolError extends Error {
25 constructor(name: string, key: string | symbol);
26}
27export declare class SelfContainingClassError extends TypeError {
28 constructor(name: string, key: string);
29}
30export declare class RefOptionIsUndefinedError extends Error {
31 constructor(name: string, key: string);
32}
33export declare class NotValidModelError extends TypeError {
34 constructor(model: unknown, where: string);
35}
36export declare class FunctionCalledMoreThanSupportedError extends Error {
37 constructor(functionName: string, supported: number, extra: string);
38}
39export declare class StringLengthExpectedError extends TypeError {
40 constructor(length: number, got: any, where: string, valueName: string);
41}
42export declare class OptionDoesNotSupportOptionError extends TypeError {
43 constructor(currentOption: string, problemOption: string, expected: string, provided: string);
44}
45export declare class ResolveTypegooseNameError extends ReferenceError {
46 constructor(input: unknown);
47}
48export declare class ExpectedTypeError extends TypeError {
49 constructor(optionName: string, expected: string, got: unknown);
50}
51export declare class InvalidEnumTypeError extends TypeError {
52 constructor(name: string, key: string, value: unknown);
53}
54export declare class InvalidOptionsConstructorError extends TypeError {
55 constructor(name: string, key: string, type: unknown);
56}
57export declare class PathNotInSchemaError extends Error {
58 constructor(name: string, key: string);
59}
60export declare class NoDiscriminatorFunctionError extends Error {
61 constructor(name: string, key: string);
62}
63export declare class DuplicateOptionsError extends TypeError {
64 constructor(duplicateAt: string[]);
65}
66export declare class CacheDisabledError extends TypeError {
67 constructor(where: string);
68}