deno.land / x / mongoose@6.7.5 / types / error.d.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
declare class NativeError extends global.Error { }
declare module 'mongoose' { import mongodb = require('mongodb');
type CastError = Error.CastError; type SyncIndexesError = Error.SyncIndexesError;
class MongooseError extends global.Error { constructor(msg: string);
/** The type of error. "MongooseError" for generic errors. */ name: string;
static messages: any;
static Messages: any; }
class Error extends MongooseError { }
namespace Error {
export class CastError extends MongooseError { name: 'CastError'; stringValue: string; kind: string; value: any; path: string; reason?: NativeError | null; model?: any;
constructor(type: string, value: any, path: string, reason?: NativeError, schemaType?: SchemaType); } export class SyncIndexesError extends MongooseError { name: 'SyncIndexesError'; errors?: Record<string, mongodb.MongoServerError>;
constructor(type: string, value: any, path: string, reason?: NativeError, schemaType?: SchemaType); }
export class DisconnectedError extends MongooseError { name: 'DisconnectedError'; }
export class DivergentArrayError extends MongooseError { name: 'DivergentArrayError'; }
export class MissingSchemaError extends MongooseError { name: 'MissingSchemaError'; }
export class DocumentNotFoundError extends MongooseError { name: 'DocumentNotFoundError'; result: any; numAffected: number; filter: any; query: any; }
export class ObjectExpectedError extends MongooseError { name: 'ObjectExpectedError'; path: string; }
export class ObjectParameterError extends MongooseError { name: 'ObjectParameterError'; }
export class OverwriteModelError extends MongooseError { name: 'OverwriteModelError'; }
export class ParallelSaveError extends MongooseError { name: 'ParallelSaveError'; }
export class ParallelValidateError extends MongooseError { name: 'ParallelValidateError'; }
export class MongooseServerSelectionError extends MongooseError { name: 'MongooseServerSelectionError'; }
export class StrictModeError extends MongooseError { name: 'StrictModeError'; isImmutableError: boolean; path: string; }
export class ValidationError extends MongooseError { name: 'ValidationError';
errors: { [path: string]: ValidatorError | CastError }; addError: (path: string, error: ValidatorError | CastError) => void;
constructor(instance?: MongooseError); }
export class ValidatorError extends MongooseError { name: 'ValidatorError'; properties: { message: string, type?: string, path?: string, value?: any, reason?: any }; kind: string; path: string; value: any; reason?: MongooseError | null;
constructor(properties: { message?: string, type?: string, path?: string, value?: any, reason?: any }); }
export class VersionError extends MongooseError { name: 'VersionError'; version: number; modifiedPaths: Array<string>;
constructor(doc: Document, currentVersion: number, modifiedPaths: Array<string>); } }}
mongoose

Version Info

Tagged at
a year ago