opticore-catch-exception-error 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -130,24 +130,29 @@ declare class StackTraceURIError extends StackTraceError {
130
130
  declare class ServerListenEventError {
131
131
  private static logger;
132
132
  private static stackTrace;
133
- static __init(): typeof ServerListenEventError;
133
+ static __init(defaultLocalLang: string): typeof ServerListenEventError;
134
134
  /**
135
135
  *
136
+ * @param defaultLocalLang
137
+ * @param appPort
136
138
  */
137
- static hostPortUndefined(): void;
139
+ static hostPortUndefined(defaultLocalLang: string, appPort: any): void;
138
140
  /**
139
141
  *
142
+ * @param defaultLocalLang
143
+ * @param appHost
140
144
  */
141
- static hostUndefined(): void;
145
+ static hostUndefined(defaultLocalLang: string, appHost: string): void;
142
146
  /**
143
147
  *
144
148
  */
145
- static portUndefined(): void;
149
+ static portUndefined(defaultLocalLang: string): void;
146
150
  /**
147
151
  *
148
152
  * @param err
153
+ * @param defaultLocalLang
149
154
  */
150
- static onEventError(err: Error): void;
155
+ static onEventError(err: Error, defaultLocalLang: string): void;
151
156
  /**
152
157
  *
153
158
  * @param error
@@ -156,27 +161,31 @@ declare class ServerListenEventError {
156
161
  /**
157
162
  *
158
163
  * @param code
164
+ * @param defaultLocalLang
159
165
  */
160
- static processBeforeExit(code: number): void;
166
+ static processBeforeExit(code: number, defaultLocalLang: string): void;
161
167
  /**
162
168
  *
163
169
  */
164
- static processDisconnected(): void;
170
+ static processDisconnected(defaultLocalLang: string): void;
165
171
  /**
166
172
  *
167
173
  * @param code
174
+ * @param defaultLocalLang
168
175
  */
169
- static exited(code: number): void;
176
+ static exited(code: number, defaultLocalLang: string): void;
170
177
  /**
171
178
  *
172
179
  * @param promise
180
+ * @param defaultLocalLang
173
181
  */
174
- static promiseRejectionHandled(promise: Promise<any>): void;
182
+ static promiseRejectionHandled(promise: Promise<any>, defaultLocalLang: string): void;
175
183
  /**
176
184
  *
177
185
  * @param error
186
+ * @param defaultLocalLang
178
187
  */
179
- static uncaughtException(error: any): void;
188
+ static uncaughtException(error: any, defaultLocalLang: string): void;
180
189
  /**
181
190
  *
182
191
  * @param error
@@ -186,42 +195,47 @@ declare class ServerListenEventError {
186
195
  *
187
196
  * @param reason
188
197
  * @param promise
198
+ * @param defaultLocalLang
189
199
  */
190
- static unhandledRejection(reason: any, promise: Promise<any>): void;
200
+ static unhandledRejection(reason: any, promise: Promise<any>, defaultLocalLang: string): void;
191
201
  /**
192
202
  *
193
203
  * @param warning
204
+ * @param defaultLocalLang
194
205
  */
195
- static warning(warning: any): void;
206
+ static warning(warning: any, defaultLocalLang: string): void;
196
207
  /**
197
208
  *
198
209
  * @param message
210
+ * @param defaultLocalLang
199
211
  */
200
- static message(message: any): void;
212
+ static message(message: any, defaultLocalLang: string): void;
201
213
  /**
202
214
  *
203
215
  * @param type
204
216
  * @param promise
205
217
  * @param reason
218
+ * @param defaultLocalLang
206
219
  */
207
- static multipleResolves(type: string, promise: Promise<any>, reason: any): void;
220
+ static multipleResolves(type: string, promise: Promise<any>, reason: any, defaultLocalLang: string): void;
208
221
  /**
209
222
  *
210
223
  */
211
- static processInterrupted(): void;
224
+ static processInterrupted(defaultLocalLang: string): void;
212
225
  /**
213
226
  *
214
227
  * @param signal
228
+ * @param defaultLocalLang
215
229
  */
216
- static sigtermSignalReceived(signal: any): void;
230
+ static sigtermSignalReceived(signal: any, defaultLocalLang: string): void;
217
231
  /**
218
232
  *
219
233
  */
220
- static serverClosing(): void;
234
+ static serverClosing(defaultLocalLang: string): void;
221
235
  /**
222
236
  *
223
237
  */
224
- static dropNewConnection(): void;
238
+ static dropNewConnection(defaultLocalLang: string): void;
225
239
  /**
226
240
  *
227
241
  * @param errorEmitter
@@ -229,8 +243,9 @@ declare class ServerListenEventError {
229
243
  * @param req
230
244
  * @param res
231
245
  * @param next
246
+ * @param defaultLocalLang
232
247
  */
233
- static expressErrorHandlingMiddleware(errorEmitter: EventEmitter, err: Error, req: Request, res: Response, next: NextFunction): void;
248
+ static expressErrorHandlingMiddleware(errorEmitter: EventEmitter, err: Error, req: Request, res: Response, next: NextFunction, defaultLocalLang: string): void;
234
249
  private static traceError;
235
250
  }
236
251
 
package/dist/index.d.ts CHANGED
@@ -130,24 +130,29 @@ declare class StackTraceURIError extends StackTraceError {
130
130
  declare class ServerListenEventError {
131
131
  private static logger;
132
132
  private static stackTrace;
133
- static __init(): typeof ServerListenEventError;
133
+ static __init(defaultLocalLang: string): typeof ServerListenEventError;
134
134
  /**
135
135
  *
136
+ * @param defaultLocalLang
137
+ * @param appPort
136
138
  */
137
- static hostPortUndefined(): void;
139
+ static hostPortUndefined(defaultLocalLang: string, appPort: any): void;
138
140
  /**
139
141
  *
142
+ * @param defaultLocalLang
143
+ * @param appHost
140
144
  */
141
- static hostUndefined(): void;
145
+ static hostUndefined(defaultLocalLang: string, appHost: string): void;
142
146
  /**
143
147
  *
144
148
  */
145
- static portUndefined(): void;
149
+ static portUndefined(defaultLocalLang: string): void;
146
150
  /**
147
151
  *
148
152
  * @param err
153
+ * @param defaultLocalLang
149
154
  */
150
- static onEventError(err: Error): void;
155
+ static onEventError(err: Error, defaultLocalLang: string): void;
151
156
  /**
152
157
  *
153
158
  * @param error
@@ -156,27 +161,31 @@ declare class ServerListenEventError {
156
161
  /**
157
162
  *
158
163
  * @param code
164
+ * @param defaultLocalLang
159
165
  */
160
- static processBeforeExit(code: number): void;
166
+ static processBeforeExit(code: number, defaultLocalLang: string): void;
161
167
  /**
162
168
  *
163
169
  */
164
- static processDisconnected(): void;
170
+ static processDisconnected(defaultLocalLang: string): void;
165
171
  /**
166
172
  *
167
173
  * @param code
174
+ * @param defaultLocalLang
168
175
  */
169
- static exited(code: number): void;
176
+ static exited(code: number, defaultLocalLang: string): void;
170
177
  /**
171
178
  *
172
179
  * @param promise
180
+ * @param defaultLocalLang
173
181
  */
174
- static promiseRejectionHandled(promise: Promise<any>): void;
182
+ static promiseRejectionHandled(promise: Promise<any>, defaultLocalLang: string): void;
175
183
  /**
176
184
  *
177
185
  * @param error
186
+ * @param defaultLocalLang
178
187
  */
179
- static uncaughtException(error: any): void;
188
+ static uncaughtException(error: any, defaultLocalLang: string): void;
180
189
  /**
181
190
  *
182
191
  * @param error
@@ -186,42 +195,47 @@ declare class ServerListenEventError {
186
195
  *
187
196
  * @param reason
188
197
  * @param promise
198
+ * @param defaultLocalLang
189
199
  */
190
- static unhandledRejection(reason: any, promise: Promise<any>): void;
200
+ static unhandledRejection(reason: any, promise: Promise<any>, defaultLocalLang: string): void;
191
201
  /**
192
202
  *
193
203
  * @param warning
204
+ * @param defaultLocalLang
194
205
  */
195
- static warning(warning: any): void;
206
+ static warning(warning: any, defaultLocalLang: string): void;
196
207
  /**
197
208
  *
198
209
  * @param message
210
+ * @param defaultLocalLang
199
211
  */
200
- static message(message: any): void;
212
+ static message(message: any, defaultLocalLang: string): void;
201
213
  /**
202
214
  *
203
215
  * @param type
204
216
  * @param promise
205
217
  * @param reason
218
+ * @param defaultLocalLang
206
219
  */
207
- static multipleResolves(type: string, promise: Promise<any>, reason: any): void;
220
+ static multipleResolves(type: string, promise: Promise<any>, reason: any, defaultLocalLang: string): void;
208
221
  /**
209
222
  *
210
223
  */
211
- static processInterrupted(): void;
224
+ static processInterrupted(defaultLocalLang: string): void;
212
225
  /**
213
226
  *
214
227
  * @param signal
228
+ * @param defaultLocalLang
215
229
  */
216
- static sigtermSignalReceived(signal: any): void;
230
+ static sigtermSignalReceived(signal: any, defaultLocalLang: string): void;
217
231
  /**
218
232
  *
219
233
  */
220
- static serverClosing(): void;
234
+ static serverClosing(defaultLocalLang: string): void;
221
235
  /**
222
236
  *
223
237
  */
224
- static dropNewConnection(): void;
238
+ static dropNewConnection(defaultLocalLang: string): void;
225
239
  /**
226
240
  *
227
241
  * @param errorEmitter
@@ -229,8 +243,9 @@ declare class ServerListenEventError {
229
243
  * @param req
230
244
  * @param res
231
245
  * @param next
246
+ * @param defaultLocalLang
232
247
  */
233
- static expressErrorHandlingMiddleware(errorEmitter: EventEmitter, err: Error, req: Request, res: Response, next: NextFunction): void;
248
+ static expressErrorHandlingMiddleware(errorEmitter: EventEmitter, err: Error, req: Request, res: Response, next: NextFunction, defaultLocalLang: string): void;
234
249
  private static traceError;
235
250
  }
236
251