MissingFieldsError

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

API

Constructor

new MissingFieldsError(record,assignedFields,requestedFieldNames,missingFieldNames,missingRelations)
Params:
ParameterTypeDescription
*recordViewModelInterface
*assignedFieldsstring[]
*requestedFieldNames(Extract|ValueOf)[]
*missingFieldNamesstring[]
*missingRelations[string, string[]][]

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)
Params:
ParameterTypeDescription
*targetObjectobject
constructorOptFunction
Returns:void
prepareStackTrace(err,stackTraces)
Params:
ParameterTypeDescription
*errError
*stackTracesCallSite[]
Returns:any

Static Properties

stackTraceLimit

Source
number