Class: ReferenceValidationException
Extends
Error
Implements
Constructors
new ReferenceValidationException()
new ReferenceValidationException(
entityName
,validationErrors
,message
):ReferenceValidationException
Parameters
Parameter | Type | Default value |
---|---|---|
entityName | string | undefined |
validationErrors | ValidationError [] | undefined |
message | string | 'Data for the %s reference is not valid' |
Returns
Overrides
Error.constructor
Defined in
Properties
Property | Modifier | Type | Default value | Description | Inherited from |
---|---|---|---|---|---|
context | public | object | undefined | Additional context | - |
context.entityName | public | string | undefined | - | - |
context.validationErrors | public | ValidationError [] | undefined | - | - |
errorCode | public | string | 'REFERENCE_VALIDATION_ERROR' | The error code. | - |
message | public | string | undefined | - | ExceptionInterface .message Error.message |
name | public | string | undefined | - | ExceptionInterface .name Error.name |
stack? | public | string | undefined | - | ExceptionInterface .stack Error.stack |
prepareStackTrace? | static | (err : Error , stackTraces : CallSite []) => any | undefined | Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces (opens in a new tab) | Error.prepareStackTrace |
stackTraceLimit | static | number | undefined | - | Error.stackTraceLimit |
Methods
captureStackTrace()
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
Parameters
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
Returns
void
Inherited from
Error.captureStackTrace
Defined in
.tmp/repos/rockets/node_modules/@types/node/globals.d.ts:4