EventSourcingError
Api Code Documentation / Exports / service/domain/errors/event_sourcing_error / EventSourcingError
service/domain/errors/event_sourcing_error.EventSourcingError
#
Hierarchy↳
EventSourcingError
#
Table of contents#
Constructors#
Properties#
Methods#
Constructors#
constructor• new EventSourcingError(info
, cause?
)
#
ParametersName | Type |
---|---|
info | Info |
cause? | string | Error |
#
OverridesVError.constructor
#
Defined insrc/service/domain/errors/event_sourcing_error.ts:31
#
Properties#
cause• cause: () => undefined
| Error
#
Type declarationâ–¸ (): undefined
| Error
#
Returnsundefined
| Error
#
Inherited fromVError.cause
#
Defined innode_modules/@types/verror/index.d.ts:31
#
message• message: string
#
Inherited fromVError.message
#
Defined innode_modules/typescript/lib/lib.es5.d.ts:1023
#
name• name: string
#
Inherited fromVError.name
#
Defined innode_modules/typescript/lib/lib.es5.d.ts:1022
#
stack• Optional
stack: string
#
Inherited fromVError.stack
#
Defined innode_modules/typescript/lib/lib.es5.d.ts:1024
#
VErrorâ–ª Static
VError: typeof VError
#
Inherited fromVError.VError
#
Defined innode_modules/@types/verror/index.d.ts:21
#
prepareStackTraceâ–ª Static
Optional
prepareStackTrace: (err
: Error
, stackTraces
: CallSite
[]) => any
#
Type declarationâ–¸ (err
, stackTraces
): any
Optional override for formatting stack traces
see
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
#
ParametersName | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
#
Returnsany
#
Inherited fromVError.prepareStackTrace
#
Defined innode_modules/@types/node/globals.d.ts:11
#
stackTraceLimitâ–ª Static
stackTraceLimit: number
#
Inherited fromVError.stackTraceLimit
#
Defined innode_modules/@types/node/globals.d.ts:13
#
Methods#
captureStackTraceâ–¸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
#
ParametersName | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
#
Returnsvoid
#
Inherited fromVError.captureStackTrace
#
Defined innode_modules/@types/node/globals.d.ts:4
#
causeâ–¸ Static
cause(err
): null
| Error
#
ParametersName | Type |
---|---|
err | Error |
#
Returnsnull
| Error
#
Inherited fromVError.cause
#
Defined innode_modules/@types/verror/index.d.ts:23
#
errorForEachâ–¸ Static
errorForEach(err
, func
): void
#
ParametersName | Type |
---|---|
err | Error |
func | (err : Error ) => void |
#
Returnsvoid
#
Inherited fromVError.errorForEach
#
Defined innode_modules/@types/verror/index.d.ts:29
#
errorFromListâ–¸ Static
errorFromList<T
>(errors
): null
| T
| MultiError
#
Type parametersName | Type |
---|---|
T | extends Error |
#
ParametersName | Type |
---|---|
errors | T [] |
#
Returnsnull
| T
| MultiError
#
Inherited fromVError.errorFromList
#
Defined innode_modules/@types/verror/index.d.ts:28
#
findCauseByNameâ–¸ Static
findCauseByName(err
, name
): null
| Error
#
ParametersName | Type |
---|---|
err | Error |
name | string |
#
Returnsnull
| Error
#
Inherited fromVError.findCauseByName
#
Defined innode_modules/@types/verror/index.d.ts:26
#
fullStackâ–¸ Static
fullStack(err
): string
#
ParametersName | Type |
---|---|
err | Error |
#
Returnsstring
#
Inherited fromVError.fullStack
#
Defined innode_modules/@types/verror/index.d.ts:25
#
hasCauseWithNameâ–¸ Static
hasCauseWithName(err
, name
): boolean
#
ParametersName | Type |
---|---|
err | Error |
name | string |
#
Returnsboolean
#
Inherited fromVError.hasCauseWithName
#
Defined innode_modules/@types/verror/index.d.ts:27
#
infoâ–¸ Static
info(err
): Info
#
ParametersName | Type |
---|---|
err | Error |
#
ReturnsInfo
#
Inherited fromVError.info
#
Defined innode_modules/@types/verror/index.d.ts:24