Skip to content

Class: ReactiveModelFailedConstraintsException ​

Throw by ReactiveModel when trying to save a model instance with values which do not match the constraints.

Extends ​

Constructors ​

Constructor ​

ts
new ReactiveModelFailedConstraintsException(reason: ValidationError): ReactiveModelFailedConstraintsException;

Parameters ​

ParameterType
reasonValidationError

Returns ​

ReactiveModelFailedConstraintsException

Overrides ​

ts
ReActiveRecordValidationError.constructor;

Properties ​

PropertyModifierTypeDescriptionInherited from
cause?publicunknown-ReActiveRecordValidationError.cause
stack?publicstring-ReActiveRecordValidationError.stack
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesReActiveRecordValidationError.prepareStackTrace
stackTraceLimitstaticnumber-ReActiveRecordValidationError.stackTraceLimit

Methods ​

captureStackTrace() ​

ts
static captureStackTrace(targetObject: object, constructorOpt?: Function): void;

Create .stack property on a target object

Parameters ​

ParameterType
targetObjectobject
constructorOpt?Function

Returns ​

void

Inherited from ​

ReActiveRecordValidationError.captureStackTrace