Skip to content

Class: UnpreparedRelationshipException ​

Throw when trying to access the related model instance which has not been prepared first

Extends ​

Constructors ​

Constructor ​

ts
new UnpreparedRelationshipException(originating: string, related: string): UnpreparedRelationshipException;

Parameters ​

ParameterType
originatingstring
relatedstring

Returns ​

UnpreparedRelationshipException

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