Skip to content

Class: ReActiveRecordError ​

Base class for all ReActiveRecord errors.

Extends ​

  • Error

Extended by ​

Constructors ​

Constructor ​

ts
new ReActiveRecordError(
   name: string,
   message: string,
   options?: ReActiveRecordErrorOptions): ReActiveRecordError;

Creates a new ReActiveRecordError instance.

Parameters ​

ParameterTypeDescription
namestring-
messagestringThe error message.
options?ReActiveRecordErrorOptionsThe error options.

Returns ​

ReActiveRecordError

Overrides ​

ts
Error.constructor;

Properties ​

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

ts
Error.captureStackTrace;