Skip to content

Class: RelationshipCannotOverridePropertyException ​

Throw when trying to create a relationship on a model's property

Extends ​

Constructors ​

Constructor ​

ts
new RelationshipCannotOverridePropertyException(model: string, property: string): RelationshipCannotOverridePropertyException;

Parameters ​

ParameterType
modelstring
propertystring

Returns ​

RelationshipCannotOverridePropertyException

Overrides ​

ReActiveRecordError.constructor

Properties ​

PropertyModifierTypeDescriptionInherited from
cause?publicunknown-ReActiveRecordError.cause
stack?publicstring-ReActiveRecordError.stack
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-tracesReActiveRecordError.prepareStackTrace
stackTraceLimitstaticnumber-ReActiveRecordError.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 ​

ReActiveRecordError.captureStackTrace