talawa-api / Exports / libraries/errors/applicationError / ApplicationError
libraries/errors/applicationError.ApplicationError
This class is responsible for finding the application errors. It adds those errors to superclass called Error.
-
Error
↳
ApplicationError
• new ApplicationError(errors
, httpCode?
, message?
): ApplicationError
Name | Type | Default value |
---|---|---|
errors |
InterfaceError [] |
undefined |
httpCode |
number |
422 |
message |
string |
"Error" |
Error.constructor
src/libraries/errors/applicationError.ts:14
• errors: InterfaceError
[]
src/libraries/errors/applicationError.ts:11
• httpCode: number
src/libraries/errors/applicationError.ts:12
• message: string
Error.message
node_modules/typescript/lib/lib.es5.d.ts:1076
• name: string
Error.name
node_modules/typescript/lib/lib.es5.d.ts:1075
• Optional
stack: string
Error.stack
node_modules/typescript/lib/lib.es5.d.ts:1077
▪ Static
Optional
prepareStackTrace: (err
: Error
, stackTraces
: CallSite
[]) => any
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
▸ (err
, stackTraces
): any
Optional override for formatting stack traces
Name | Type |
---|---|
err |
Error |
stackTraces |
CallSite [] |
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Error.prepareStackTrace
node_modules/@types/node/globals.d.ts:28
▪ Static
stackTraceLimit: number
Error.stackTraceLimit
node_modules/@types/node/globals.d.ts:30
▸ captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Name | Type |
---|---|
targetObject |
object |
constructorOpt? |
Function |
void
Error.captureStackTrace
node_modules/@types/node/globals.d.ts:21