MissingFieldsError

Source
import { MissingFieldsError } from "@prestojs/viewmodel";

API

Constructor

new MissingFieldsError(record,assignedFields,requestedFieldNames,missingFieldNames,missingRelations)
Source

Arguments:

ArgumentTypeDescription
*recordViewModelInterface
*assignedFieldsstring[]
*requestedFieldNamesstring|string[][]
*missingFieldNamesstring[]
*missingRelations[string, string[]][]

Methods

prepareStackTrace(err,stackTraces)
Source

Arguments:

ArgumentTypeDescription
*errError
*stackTracesCallSite[]
Returns:any

Properties

assignedFields

Source
string[]

message

Source
string

missingFieldNames

Source
string[]

missingRelations

Source
[string, string[]][]

name

Source
string

stack

Source
string

Static Methods

captureStackTrace(targetObject,?constructorOpt)
Source

Arguments:

ArgumentTypeDescription
*targetObjectobject
constructorOptFunction
Returns:void

Static Properties

stackTraceLimit

Source
number